Skip to content

fix!: Be aware of ForcePrepend #2028

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

machupicchubeta
Copy link
Contributor

@machupicchubeta machupicchubeta commented Mar 20, 2025

Summary

Previously, the value of ForcePrepend was not used anywhere and was not behaving as specified.
With this commit, the behavior will be as specified.

BREAKING CHANGE

So far, ASDF_FORCE_PREPEND environment variable setting has been ignored, but this commit may change the behavior depending on the setting.

If it is not set, macOS behavior will not change, but Linux behavior will change.
If you want to get the same behavior as before, it is recommended to set the relevant environment variable.

Other Information

Referenced Documents

Background

@andrecloutier told about this issue me in a comment on another PullRequest. Thank you!

@machupicchubeta machupicchubeta requested a review from a team as a code owner March 20, 2025 14:43
@machupicchubeta machupicchubeta marked this pull request as draft March 20, 2025 15:01
@machupicchubeta machupicchubeta force-pushed the be_aware_of_force_prepend branch 2 times, most recently from 32bab49 to 137b35f Compare March 20, 2025 17:16
Previously, the value of `ForcePrepend` was not used anywhere and was not behaving as specified.
With this commit, the behavior will be as specified.

BREAKING CHANGE:
So far, `ASDF_FORCE_PREPEND` environment variable setting has been ignored, but this commit may change the behavior depending on the setting.

If it is not set, macOS behavior will not change, but Linux behavior will change.
If you want to get the same behavior as before, it is recommended to set the relevant environment variable.

Referenced Documents:
- https://github.com/asdf-vm/asdf/blob/932ac468b7c24c2adef90a293a1f7280a0074cc4/docs/manage/configuration.md#asdf_force_prepend

Background:
@andrecloutier told about this issue me in a comment on another PullRequest. Thank you!
- asdf-vm#2011 (comment)
@machupicchubeta machupicchubeta force-pushed the be_aware_of_force_prepend branch from 5e0609e to f9bf8fb Compare March 20, 2025 18:28
@machupicchubeta machupicchubeta marked this pull request as ready for review March 20, 2025 18:39
@machupicchubeta machupicchubeta changed the title fix: Be aware of ForcePrepend fix!: Be aware of ForcePrepend Mar 20, 2025
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.

1 participant