Comments (8)
I agree that AllowPrerelease
should be propagated to other calls once specified by the user or if they specify a specific version string that includes prerelease. Note that a stable module that depends on prerelease dependencies is not a pattern we want to support so that should continue to fail.
from psresourceget.
@SydneyhSmith @kamennikolov I ran into a similar issue where I'm trying to publish a module that depends on a pre-release version of another module. Publish-Module throws No match was found for the specified search criteria and module name ..
error. Are there any workarounds to resolve this problem?
from psresourceget.
@kumbham we fixed Publish-Module locally and managed to upload.
from psresourceget.
@kamennikolov thanks for the response. Do you mind sharing me few pointers on where and how can I fix it?
from psresourceget.
@kamennikolov thanks for the response. Do you mind sharing me few pointers on where and how can I fix it?
It was back in 2018. We used PowerShellGet 1.6 then. The problem was in the ValidateAndGet-RequiredModuleDetails
function of PSModule.psm1
The fix we did locally to be able to publish the prerelease modules was at line 8607 of PSModule.psm1
which calls Find-Module
with splatting @FindModuleArguments
. The FindModuleArguments hashble is defined 3 lines above at 8604 and the only parameter in it is the Name of the module. That is breaking the validation. -AllowPrerelease has to be specified on the Find-Module to be able to discover the published prerelease module dependencies.
The fix I did then was to replace
Find-Module @FindModuleArguments
with
Find-Module -Name $ModuleName -AllowPrerelease
another option is to add AllowPrerelease
key with $true
in the FindModuleArguments
hashtable
The fix shouldn't have affect non prerelease modules it should work for them as well.
from psresourceget.
A similar issue arises when I perform Save-Module
as well.
from psresourceget.
This is fixed via beta10
from psresourceget.
Is there any chance of this fix being added as a patch to 2.x ?
I realized that there's been a stop on development and whatnot, but it would be very helpful in our migration path to powershellget 3 and powershell 7 if we could handle these preRelease depdendencies on our current modules.
from psresourceget.
Related Issues (20)
- CHANGELOG is not accurate
- Unable to update PSResourceGet via Artifactory remote repo HOT 4
- Save-PSResource doesn't install the correct version. HOT 6
- Add support for the ADO credential provider
- Some Nuget packages fail to extract
- Script installation should require less fiddling with PATH
- "The process cannot access the file" during `Save-PSResource` HOT 7
- Proxy support ?
- Adding the Parameter -Credential to Register-PSResourceRepository HOT 1
- Adding the Parameter -Scope with Values for AllUsers, CurrentUser to Register-PSResourceRepository HOT 2
- PR #1626 break PR #1599 HOT 1
- Implement a `.editorconfig` in the project for autoformatting
- WDAC blocking PSResourceGet because of Dot sourcing in Find-PSResource
- `Install-PSResource`: Fail to install module when passing `-Version` (range) together with `-Prerelease` HOT 1
- `Install-PSResource`: Install wrong prerelease when passing `-Version` (range) together with `-Prerelease` HOT 7
- Artifactory+NuGet v2: Save/Install broken for prereleases due to incorrect URL HOT 1
- Update-PSResource updated PSResourceGet to 1.1.0-preview1
- PSResourceInfo should include functions, cmdlets, etc HOT 1
- PSResourceInfo tags should not include PSResourceGet impl tags
- Find-PSResource -Name * does not return anything on 1.0.5+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psresourceget.