Skip to content

[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

Closed
3 tasks done
skumagai opened this issue May 4, 2022 · 5 comments
Closed
3 tasks done

[Bug]: dangling links in 4.3.0 release #5157

skumagai opened this issue May 4, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@skumagai
Copy link

skumagai commented May 4, 2022

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

It's about the release file for macOS.

Steps to Reproduce

  1. Download standalone 4.3.0 for macOS (code-server-4.3.0-macos-amd64.tar.gz) from github
  2. Untar the file
  3. find code-server-4.3.0-macos-amd64 -xtype l

Expected

No output/dangling link

Actual

code-server-4.3.0-macos-amd64/lib/vscode/extensions/node_modules/.bin/tsc
code-server-4.3.0-macos-amd64/lib/vscode/extensions/node_modules/.bin/tsserver

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using 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.

@skumagai skumagai added bug Something isn't working triage This issue needs to be triaged by a maintainer labels May 4, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented May 4, 2022

Hmm...my thinking is that when you unpack it, the node_modules won't be installed in lib/vscode/extensions so I think this is expected. You'd need to run yarn --production from the root. Right, @code-asher ?

@code-asher
Copy link
Member

code-asher commented May 5, 2022 via email

@jsjoeio jsjoeio added help-wanted and removed triage This issue needs to be triaged by a maintainer labels May 6, 2022
@jsjoeio jsjoeio added this to the On Deck - High Priority milestone May 6, 2022
@code-asher
Copy link
Member

I think maybe these are gone now but I need to check.

yiliang114 pushed a commit to yiliang114/code-server that referenced this issue Jan 23, 2025
The fix will now run both to the GitHub and npm release instead of only
for the npm releases.

Closes coder#5157.
@ACMCMC
Copy link

ACMCMC commented Mar 9, 2025

Still getting this error on current releases (e.g. code-server-4.97.2-linux-amd64.tar.gz). Any ideas? :)

@code-asher
Copy link
Member

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 code-server-4.97.2-linux-amd64.tar.gz.

$ mkdir /tmp/test
$ curl -L https://github.com/coder/code-server/releases/download/v4.97.2/code-server-4.97.2-linux-amd64.tar.gz | tar -xzC /tmp/test
$ find /tmp/test/code-server-4.97.2-linux-amd64 -xtype l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants