4f23e42cfd
Update to code-server 4.129.0, which bundles VS Code 1.129.0.
VS Code 1.129 changed how the built-in GitHub Copilot extension is
handled: it is now built from source during the reh-web build instead
of being fetched as a prebuilt VSIX. This requires a few build-time
workarounds:
- The copilot extension postinstall expects a platform package for the
host. A Copilot CLI SDK distfile is provided and placed as
@github/copilot-freebsd-x64 so the postinstall passes. GitHub Copilot
is closed-source and not usable on FreeBSD; this only lets the build
complete.
- The reh-web build calls ensureCopilotPlatformPackage(), which runs
"npm pack" and thus needs network access (unavailable in poudriere).
Providing @github/copilot-linux-x64 in remote/node_modules makes the
function find it locally and skip the network fetch.
- Copilot bundles prebuilt Linux rg/tgrep binaries. These are replaced
with native FreeBSD binaries from textproc/ripgrep and textproc/tgrep
so that no Linux ELF binaries ship in the package.
Additional changes:
- Add ONLY_FOR_ARCHS=amd64; only a linux-x64 vscode-reh-web distfile is
provided.
- Drop test/* entries from VSCODE_NODE_MODULES; test suites do not
belong in the server package.
- Add a code_server_shell rc variable (default /bin/sh) so the built-in
terminal works when the service runs as nobody, whose login shell is
/usr/sbin/nologin.
- Fix ${PREFIX} expansion in pkg-message.
Sponsored by: Netzkommune GmbH
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
VSCODE_NODE_MODULES= . \
|
|
.vscode/extensions/vscode-pr-pinger \
|
|
.vscode/extensions/vscode-selfhost-import-aid \
|
|
.vscode/extensions/vscode-selfhost-test-provider \
|
|
build \
|
|
build/rspack \
|
|
build/vite \
|
|
extensions \
|
|
extensions/configuration-editing \
|
|
extensions/copilot \
|
|
extensions/css-language-features \
|
|
extensions/css-language-features/server \
|
|
extensions/debug-auto-launch \
|
|
extensions/debug-server-ready \
|
|
extensions/emmet \
|
|
extensions/extension-editing \
|
|
extensions/git \
|
|
extensions/git-base \
|
|
extensions/github \
|
|
extensions/github-authentication \
|
|
extensions/grunt \
|
|
extensions/gulp \
|
|
extensions/html-language-features \
|
|
extensions/html-language-features/server \
|
|
extensions/ipynb \
|
|
extensions/jake \
|
|
extensions/json-language-features \
|
|
extensions/json-language-features/server \
|
|
extensions/markdown-language-features \
|
|
extensions/markdown-math \
|
|
extensions/media-preview \
|
|
extensions/merge-conflict \
|
|
extensions/mermaid-markdown-features \
|
|
extensions/microsoft-authentication \
|
|
extensions/notebook-renderers \
|
|
extensions/npm \
|
|
extensions/php-language-features \
|
|
extensions/references-view \
|
|
extensions/search-result \
|
|
extensions/simple-browser \
|
|
extensions/terminal-suggest \
|
|
extensions/tunnel-forwarding \
|
|
extensions/typescript-language-features \
|
|
extensions/vscode-api-tests \
|
|
extensions/vscode-colorize-perf-tests \
|
|
extensions/vscode-colorize-tests \
|
|
extensions/vscode-test-resolver \
|
|
remote \
|
|
remote/web
|