Skip to content

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
@finestructure finestructure deleted the fix-linux-install-command branch June 17, 2025 06:12
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