Code Monkey home page Code Monkey logo

Comments (2)

gaelcolas avatar gaelcolas commented on August 31, 2024

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.

Jaykul avatar Jaykul commented on August 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.