Skip to content

fix: Elixir SDK doesn't expand tilde#5568

Merged
gerhard merged 1 commit into
dagger:mainfrom
wingyplus:fix-engine-path
Aug 4, 2023
Merged

fix: Elixir SDK doesn't expand tilde#5568
gerhard merged 1 commit into
dagger:mainfrom
wingyplus:fix-engine-path

Conversation

@wingyplus
Copy link
Copy Markdown
Contributor

If user run with local cli mode and use home directory with tilde (~), the SDK will always fallback to download engine method. This happens because of System.find_executable returns nil when home directory is ~. Fixes by expand bin path before sending it to System.find_executable.

If user run with local cli mode and use home directory with tilde (`~`),
the SDK will always fallback to download engine method. This happens
because of `System.find_executable` returns `nil` when home directory
is `~`. Fixes by expand bin path before sending it to
`System.find_executable`.

Signed-off-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com>
@wingyplus wingyplus requested a review from a team as a code owner August 3, 2023 15:46
Copy link
Copy Markdown
Contributor

@gerhard gerhard left a comment

Choose a reason for hiding this comment

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

👍 🚀

@gerhard gerhard merged commit 0a46ff7 into dagger:main Aug 4, 2023
@wingyplus wingyplus deleted the fix-engine-path branch August 5, 2023 04:27
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request Aug 9, 2023
If user run with local cli mode and use home directory with tilde (`~`),
the SDK will always fallback to download engine method. This happens
because of `System.find_executable` returns `nil` when home directory
is `~`. Fixes by expand bin path before sending it to
`System.find_executable`.

Signed-off-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com>
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