Skip to content

Fix linux install command #1081

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

finestructure
Copy link
Contributor

I'm getting an error running the swiftly install command in a docker container (ubuntu:jammy, although I don't think that matters):

$ curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
tar zxf swiftly-$(uname -m).tar.gz && \
./swiftly init --quiet-shell-followup && \
. "${SWIFTLY_HOME_DIR:-~/.local/share/swiftly}/env.sh" && \
hash -r
...
The global default toolchain has been set to `Swift 6.1.2`
Swift 6.1.2 installed successfully!
/bin/sh: 1: .: cannot open ~/.local/share/swiftly/env.sh: No such file

I believe the tail end of the install command should be

. "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh"

to avoid that error.

@shahmishal shahmishal merged commit e046701 into swiftlang:main Jun 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants