-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: dangling links in 4.3.0 release #5157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm...my thinking is that when you unpack it, the |
The dangling links happen because Code removes some files in its
postinstall but it does not remove the associated .bin links.
https://github.com/microsoft/vscode/blob/d976637473418766ee0610294fdf820a2dfded62/extensions/postinstall.mjs
We had problems with these dangling links when packaging the deb and rpm
via nfpm so we added some code to remove them but we only do it for the
nfpm step and not for the standalone releases!
So we should take this code:
https://github.com/coder/code-server/blob/ef0d76bc16fad89ae951a94d616d41f0ab3bed57/ci/build/build-packages.sh#L53-L56
And move it here:
https://github.com/coder/code-server/blob/ef0d76bc16fad89ae951a94d616d41f0ab3bed57/ci/build/build-standalone-release.sh#L31
Of course an even better solution would to be to submit a patch
upstream. :)
|
I think maybe these are gone now but I need to check. |
The fix will now run both to the GitHub and npm release instead of only for the npm releases. Closes coder#5157.
Still getting this error on current releases (e.g. |
What error are you seeing? This issue describes some dangling links but not any errors that I could find. As for the links, I am not seeing any danging in
|
Is there an existing issue for this?
OS/Web Information
It's about the release file for macOS.
Steps to Reproduce
code-server-4.3.0-macos-amd64.tar.gz
) from githubfind code-server-4.3.0-macos-amd64 -xtype l
Expected
No output/dangling link
Actual
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code?
Are you accessing code-server over HTTPS?
Notes
First, I'm not sure if this is a bug. If not, feel free to close this issue.
I was working to make 4.3.0 available as a conda package in conda-forge/code-server-feedstock#62, and I noticed a build was failing on macOS due to dangling links (see: CI pipeline.
Manually unpacking 4.3.0 release for macOS confirms that
lib/vscode/extensions/node_modules/.bin/{tsc,tsserver}
are pointing to nonexistent../typescript/bin/{tsc,tsserver}
(../typescript/bin
directory doesn't exist).Since I don't code in Javascript and Typescript, I can't asses if this has any impact or not. Nevertheless, I thought it might be good to let you know about it.
The text was updated successfully, but these errors were encountered: