-
Notifications
You must be signed in to change notification settings - Fork 5
vscode-web
install error on alpine arm64
#92
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
Thanks for reporting. Would you like to submit a PR? |
I'm willing to submit a PR, what would you prefer to fix this, by auto detect or providing a new variable to select linux distribution, for auto detect I have no idea, maybe check with |
I will take a crack at updating the module to accurately detect and select the correct code-server version based on the target system’s architecture. I’ll post updates here as I make progress. |
vscode has support multiple platform & arch maybe just create simple variable to fill variable "platform" {
type = string
description = "The platform to use for the VS Code Web binary."
default = "linux"
validation {
condition = var.platform == "linux" || var.platform == "darwin" || var.platform == "alpine" || var.platform == "win32"
error_message = "Incorrect value. Please set either 'linux', 'darwin', or 'alpine' or 'win32'."
}
} |
Instead of just adding a variable, I think the best approach would be to auto-detect the platform (e.g., Alpine vs. glibc Linux) in the script, but also let users override it with a variable if needed. This way, it works out-of-the-box for most users, but still gives flexibility for edge cases. It’s more robust and user-friendly than requiring everyone to set the variable manually. Here is an idea of how you could go about detecting the platform, while allowing for a platform to be specified by a variable:
You could then go and use this to define which version of VSCode is installed. |
Because the module auto select linux variant
registry/registry/coder/modules/vscode-web/run.sh
Line 70 in 31b8312
vscode-web has alpine variant
The text was updated successfully, but these errors were encountered: