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 version string in the chocolateyInstall.ps1 #13

Closed
christianbumann opened this issue Jul 5, 2023 · 3 comments
Closed

Fix version string in the chocolateyInstall.ps1 #13

christianbumann opened this issue Jul 5, 2023 · 3 comments

Comments

@christianbumann
Copy link

The url in the install powershell should not contain a variable but a fix url.
Background. There is an internalization functionality by chocolatey which repacks the package for own package server and e.g. offline szenario. So the url cannot be determined because the variable doesn‘t exists… It may work for install, but not for internalization.

https://docs.chocolatey.org/en-us/features/package-internalizer

Would it possible to fix this and release the newest version? Many thanks

@AJDurant
Copy link
Owner

As in when running the internalizer it can't read the URL because of the variable?

@AJDurant
Copy link
Owner

A workaround would be to set the env var ($env:ChocolateyPackageVersion) yourself beforehand. But I will fix this in the next version which I'm updating now.

@christianbumann
Copy link
Author

Sorry for my late answer. Yes setting the variable works, but then this has to be done for every version…

We have an automated Azure DevOps pipeline which internalizes 4 times a day any package which we already have internalized (with a new version if available) so this automation would not work…

But many thanks for the fix 👍 so this should now work for me

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

No branches or pull requests

2 participants