Skip to content

Add automatically compat entry when adding a package #776

@saschatimme

Description

@saschatimme

Assume I install StaticArrays in my current project

(v0.7) pkg> add StaticArrays
 Resolving package versions...
  Updating `~/.julia/environments/v0.7/Project.toml`
  [90137ffa] + StaticArrays v0.8.3
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [no changes]

I think that then automatically an entry to [compat] should be added limiting to the current (semver) major version, i.e.,

[compat]
StaticArrays = "0.8.3"

With this, you (as a user or package author) have to explicitly upgrade your dependencies to a new major version and do not run into the problem of an incidentally broken package or script.

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