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

Action/PR: Avoid $version in checkver script #8

Closed
wants to merge 1 commit into from

Conversation

issaclin32
Copy link
Member

@issaclin32 issaclin32 commented May 19, 2022

  • This is a patch to help us avoid using $version in checkver script, which can cause some serious errors like #8494 and #8498.

  • Another way to implement this is through schema.json,
    but I think implementing this in PR handler is simpler and more readable.

@issaclin32 issaclin32 requested a review from rashil2000 May 19, 2022 07:54
@rashil2000
Copy link
Member

I think we should really first investigate why the $version variables gets leaked out of the Invoke-Expression call here: https://github.com/ScoopInstaller/Scoop/blob/ac2fb38722fffca9dcea6e7faeda6f305f04ad9b/bin/checkver.ps1#L224, that too in the global scope (because it affects all subsequent checkver calls thereafter).

/cc @niheaven

@issaclin32
Copy link
Member Author

Fixed by ScoopInstaller/Scoop#4941.

@issaclin32 issaclin32 closed this May 28, 2022
@rashil2000 rashil2000 deleted the issaclin32-avoid-version branch May 28, 2022 14:04
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