Skip to content
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

fix: use universal scope for fish_user_paths in fish shell integration #1699

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

bakotaco
Copy link
Contributor

Summary

This PR addresses issue described in #1629. Currently the Fish shell setup script sets fish_user_paths as a global variable. This conflicts with the expected universal nature of fish_user_paths, leading to path assignments not persisting across sessions when using fish_add_path.

Fixes:

Other Information

This ensures that any paths added via fish_add_path are retained across all Fish shell sessions, aligning with the standard behavior of fish_add_path as outlined in its documentation.

@bakotaco bakotaco requested a review from a team as a code owner December 22, 2023 12:05
Copy link
Contributor

@jthegedus jthegedus left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@jthegedus
Copy link
Contributor

And of course when I have the time to go through PRs for the first time this year GitHub "experiences issues". Will merge tomorrow. Cheers!

@jthegedus
Copy link
Contributor

There seem to be some other fish issues, but we can deal with them separately 👍

@jthegedus jthegedus merged commit 0ffee72 into asdf-vm:master Jan 10, 2024
5 of 7 checks passed
@hyperupcall
Copy link
Contributor

hyperupcall commented Jan 13, 2024

This MR is a breaking change in cases where a user uses asdf in a script, as shown by the failing tests. Because --universal persists the variable modification, there needs to be better isolation for the fish test as well, which wasn't done either.

@jthegedus
Copy link
Contributor

This MR is a breaking change in cases where a user uses asdf in a script, as shown by the failing tests. Because --universal persists the variable modification, there needs to be better isolation for the fish test as well, which wasn't done either.

Yeah, I would like to get this fixed before performing a new release. Help welcome as my environment is currently unable to run fish without significant effort 😅

@bakotaco
Copy link
Contributor Author

apologies, but after talking to @faho (long time fish contributor) I came to the conclusion this was actually an incorrect fix... I created a followup PR with a proper fix and explanation: #1709

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.

3 participants