fsprojects / fsprojects/Paket

[Feature request/Discussion] Behaviour of CURRENTVERSION placeholder in template file.

Open
#2,663 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement paket pack spec
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

I have a solution with two projects A and B.
Both projects produce nuget packages and B has a nuget dependency of project A.

I want to set dependency with range ["A current version", "A next major version")

I can use ~> CURRENTVERSION placeholder in template file for B but there are two problems with it.

  1. CURRENTVERSION only works when version explicitly set in pack command arguments (with --specific-version for A or with just --version <...>).
    Maybe paket can use same version as for package itself (from assemblyVersion attribute or template file for project A)?
  2. I can't achieve next-major-version) right border although it seems a good choice from semver perspective.
    E.g. If A version is 3.2.1 with ~> CURRENTVERSION i get [3.2.1, 3.3.0) range.
    Maybe paket needs another placeholder for exactly that case?

I can explicitly set version range in template file for B but in that case i must not forget to update it every time i change A version. It's annoying :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CURRENTVERSION behavior described for Paket template files and the pack command, comparing explicit --specific-version or --version inputs with versions from project A's assemblyVersion attribute or template. Clarify the desired next-major semver range behavior and define how the dependency range should be generated before identifying the relevant implementation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.