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

Fortran fpm(1) does not take ver= keyword on dependencies #187

Closed
urbanjost opened this issue Sep 22, 2020 · 1 comment
Closed

Fortran fpm(1) does not take ver= keyword on dependencies #187

urbanjost opened this issue Sep 22, 2020 · 1 comment

Comments

@urbanjost
Copy link
Contributor

In the Fortran version if you use ver= with a dependency it fails

[dependencies.M_CLI2]
git = "https://github.com/urbanjost/M_CLI2.git"
ver = "a177b0077819571815fa6a8da6980bcb45443858"

fpm run --args build
Key ver is not allowed in dependency M_CLI2
ERROR STOP 1

Error termination. Backtrace:
#0 0x7fc87742e131 in ???
#1 0x7fc87742ecd9 in ???
#2 0x7fc87742fe9b in ???
#3 0x404570 in fpm_MOD_cmd_build
at src/fpm.f90:101
#4 0x401977 in MAIN

at app/main.f90:22
#5 0x401a20 in main
at app/main.f90:8

@awvwgk
Copy link
Member

awvwgk commented Sep 22, 2020

For reference, the bootstrap fpm will only use rev, branch or tag for git dependencies.

fpm/PACKAGING.md

Lines 647 to 657 in 1a394d7

You can also be specific about which version of a dependency you’d like. You can
specify a branch to use like
`helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git", branch = "master" }`,
or a tag like
`helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git", tag = "v1.2.3" }`,
or even a specific commit like
`helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git", rev = "a1b2c3" }`.
You can even specify the path to another folder, if for example you’ve got
another fpm package in the same repository. Like this:
`helloff = { path = "helloff" }`. Note that you should *not* specify paths
outside of your repository, or things won’t work for your users.

Everything else can be specified, but is silently ignored in bootstrap fpm.

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

2 participants