Skip to content

paket init should pin itself #3320

Description

@manne

Description

paket.exe init should pin the version of itself into paket.dependencies

Scenario

Given paket.exe is available in version 1.2.3
When one wants to initialize its repository
Then paket.exe init is called

Expected behavior

The command generates paket.dependencies file with this content

version 1.2.3
source https://www.nuget.org/api/v2

Actual behavior

The command generates paket.dependencies file with this content

source https://www.nuget.org/api/v2

Two possibilities
A. Introduce an option, e.g. --pin. The behavior is backward compatibility.
B. Make it as the standard behavior. The behavior is a "breaking change"

I prefer B, because one of the many advantage of paket is pinning the version of the (transitive) dependencies. So it is only logical to pin the version of paket itself.

I can submit a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions