Sitelet https://github.com/fsprojects/Paket/issues/1483
Skip to content

paket.template dependency ~> LOCKEDVERSION does not work with Dependency Groups #1483

Description

@galaxystar

paket.template dependency ~> LOCKEDVERSION does not work with Dependency Groups, it always seems to try and find the LOCKEDVERSION in the main group, which I'm not using.

The code confirms this:

match lockFile.Groups.[Constants.MainDependencyGroup].Resolution |> Map.tryFind id' with

I receive the following error:
Paket version 2.50.9.0
Paket failed with:
The template file /paket.template contains the placeholder LOCKEDVERSION, but no version was given for package <package_name> in the lockfile.

Suggested Resolution: paket.template should support dependency groups. If this is already the case, it's not clear in the documentation.

CURRENTVERSION does not seem to work correctly either in this scenario.

paket.lock

GROUP Platform-All
NUGET
  remote: http://url.to.mynexusrepo
  specs:
    package_name (1.0.0)

paket.dependencies

group Platform-All
    source http://url.to.mynexusrepo

    # Add all platform shared packages.
    nuget package_name ~> 1.0.0

paket.template

type file
copyright MyCo 2016
id packet_name
version 1.0.2
authors 
    My Name
projectUrl 
    http://url.to.my.repo
description
    my description
files
    Assets/ ==> content/
dependencies
    packet_name ~> LOCKEDVERSION

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions