Skip to content

Update /usr/bin lookup on Linux - #55

Open
keeshux wants to merge 1 commit into
compnerd:mainfrom
keeshux:bugfix/linux-path
Open

keeshux wants to merge 1 commit into
compnerd:mainfrom
keeshux:bugfix/linux-path

Conversation

@keeshux

@keeshux keeshux commented Jun 29, 2026 •

Copy link
Copy Markdown

The toolchain is extracted to ${HOME}, but the toolchain itself is contained in another swift-x.y.z subdirectory. Therefore, ${HOME}/usr/bin doesn't work. Maybe this has changed recently.

Comment thread action.yml
tar zxf swift-toolchain.tar.gz -C ${HOME}
rm -f swift-toolchain.tar.gz
echo "${HOME}/usr/bin" >> $GITHUB_PATH
SWIFT_PATHS=("$HOME"/swift-*/usr/bin)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we be more explicit about this path? That is, rather than resolving via a glob, spell out what we expect this path to be.

@keeshux keeshux Jun 30, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an example of what I found out:

/home/runner/swift-6.3.2-RELEASE-ubuntu24.04/usr/bin

Could be something like this?

${HOME}/swift-${RESOLVED_SWIFT_VERSION}-ubuntu${VERSION_ID}/usr/bin

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be great

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