Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
galaxystar opened this issue Feb 20, 2016 · 0 comments

Comments

@galaxystar
Copy link

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
@galaxystar galaxystar changed the title paket.template dependency ~> LOCKVERSION does not work with Dependency Groups paket.template dependency ~> LOCKEDVERSION does not work with Dependency Groups Feb 20, 2016
@forki forki closed this as completed in c2565a8 Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant