Comments (2)
In the ModuleSpecification constructor it actually expects ModuleVersion
for minimum version (confusing)
But yeah, that sounds like a quick and easy change...
PR coming
Note that's only for those building this project, and it's best practice to pin versions (but also keeping them up to date), so that might not be accepted by all.
from modulebuilder.
I'm torn on this one.
On the one hand, PowerShell and PowerShellGet have no awareness of version number semantics and will accept and use even a version that's multiple major version changes ahead. This is a major problem to me.
On the other hand, you're obviously right that build.ps1 isn't currently processing the RequiredModules but is instead relying on autoloading, so the newer version is going to get loaded regardless...
However, more importantly, I tested this back and forth the way it is now, but I'm not sure that the MinimumVersion has the same behavior for Install-Module
in terms of bypassing the need to -Force
install for things like Pester that are already installed. Does it?
from modulebuilder.
Related Issues (20)
- Failed tests after install HOT 1
- Build-Module can produce invalid module without raising error HOT 6
- Export alias create with Set-Alias and New-Alias HOT 8
- Mac, APFS, and file system ordering HOT 1
- Boolean with psd1 is not being parsed correctly when Configuration 1.5/Metadata 1.5 are installed. HOT 3
- Support test files alongside source like Pester suggests HOT 4
- Feature: Support SemVer 2.0 Informational Version HOT 1
- Error when running Install-RequiredModule.ps1 HOT 4
- FileList property is not populated HOT 4
- How can I merge my main module & a required module into one .psm1 file? HOT 4
- Error when invoking Build-Module again HOT 1
- Add support to order PS1 when file system doesn't HOT 3
- Build-Module not working in Azure DevOps Pipeline on ubuntu agent HOT 9
- Defaults cause hard-to-detect problems on Linux HOT 2
- Have ModuleBuilder support comment-based help that is located prior to function-block HOT 7
- When UnversionedOutputDirectory = $true and OutputDirectory = ".." wrong things happen HOT 3
- Doc bug
- Fails to import source module manifest when not using a build manifest HOT 5
- The MoveUsingStatements feature doesn't work for using namespace HOT 2
- [Documentation] Update step 2. Install dependencies
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 modulebuilder.