Skip to content

Bugfix: Publish-PSResource should ensure repository.xml file is created before referencing it for dynamic parameters - #1865

Closed
Anam Navied (anamnavi) wants to merge 1 commit into
masterfrom
publish-repo-dynamicparamerr
Closed

Bugfix: Publish-PSResource should ensure repository.xml file is created before referencing it for dynamic parameters#1865
Anam Navied (anamnavi) wants to merge 1 commit into
masterfrom
publish-repo-dynamicparamerr

Conversation

@anamnavi

@anamnavi Anam Navied (anamnavi) commented Aug 27, 2025

Copy link
Copy Markdown
Member

Publish-PSResource has a dynamic parameter and to evaluate it the repository.xml file is referenced by path. However, on a new machine (like a Github runner or fresh image) the file may not exist. So we need to check if that file exists and create it when the dynamic parameter is being set.

PR Summary

PR Context

Resolves #1806

PR Checklist

@anamnavi

Copy link
Copy Markdown
Member Author

closing this in favor of #1868

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.

Publish-PSResource v1.1.1 to PSGallery errors out on a new windows server for the first run

1 participant