Skip to content

removing version pinning of PSResourceGet in ResolveDependency psd1#34

Closed
gaelcolas wants to merge 6 commits intomainfrom
fix/psresourcegetpin
Closed

removing version pinning of PSResourceGet in ResolveDependency psd1#34
gaelcolas wants to merge 6 commits intomainfrom
fix/psresourcegetpin

Conversation

@gaelcolas
Copy link
Copy Markdown
Owner

Trying this fix...

@dan-hughes
Copy link
Copy Markdown
Contributor

dan-hughes commented Feb 12, 2026

Plaster needs pinning to 1.1.3.
1.1.4 added another psd1 file which ran into a PSResourceGet bug which is resolved in a preview version. PowerShell/PSResourceGet#1817

How it worked in the last PR I can't answer.
Also had to use ModuleFast otherwise PSResourceGet pulls Plaster 2.0.

@dan-hughes
Copy link
Copy Markdown
Contributor

New fix, use Plaster prerelease. No need to pin

@dan-hughes
Copy link
Copy Markdown
Contributor

PSResourceGet doesn't understand something and ends up pulling both 1.1.x or 2.0.0 and ResolveDepedency gets unhappy.

@johlju
Copy link
Copy Markdown
Collaborator

johlju commented Feb 12, 2026

Did not work. What if we just run the build under pwsh, then it will choose ModuleFast automatically? Pack and resolve dependencies is run under pwsh already.

It can't bootstrap ModuleFast:

WARNING: ModuleFast could not be bootstrapped. Reverting to PSResourceGet. Error: Name or service not known (bit.ly:80)

@johlju
Copy link
Copy Markdown
Collaborator

johlju commented Feb 12, 2026

Might be a bug in the reverting to PSResourceGet logic.

@dan-hughes
Copy link
Copy Markdown
Contributor

It already is.

I think DevOps is broken today.

@johlju
Copy link
Copy Markdown
Collaborator

johlju commented Feb 12, 2026

bit.ly link went to a wait page. To many requests to the link?

@johlju
Copy link
Copy Markdown
Collaborator

johlju commented Feb 12, 2026

Didn't help with using ModuleFast, still the same error when packaging the module. Back to you @gaelcolas, sorry for pushing to your branch - was hoping I could help fix it. But out of time today. 🙂

@dan-hughes
Copy link
Copy Markdown
Contributor

#33

This ran fine earlier. Gael merged it and it failed to build. Nothing seems to work now.

@dan-hughes
Copy link
Copy Markdown
Contributor

But it works locally.

@gaelcolas
Copy link
Copy Markdown
Owner Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dan-hughes
Copy link
Copy Markdown
Contributor

Waiting for gaelcolas/Sampler#552 to be merged.

@gaelcolas
Copy link
Copy Markdown
Owner Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@gaelcolas
Copy link
Copy Markdown
Owner Author

this has been fixed in #37

@gaelcolas gaelcolas closed this Mar 31, 2026
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