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

Install dependencies from remote git URLs #80

Closed
milancurcic opened this issue May 17, 2020 · 3 comments
Closed

Install dependencies from remote git URLs #80

milancurcic opened this issue May 17, 2020 · 3 comments

Comments

@milancurcic
Copy link
Member

As discussed in #33, let's allow installing fpm-enabled packages form their git repositories.

If the following is placed in fpm.toml:

[dependencies]
dependency_name = { git = git_url, tag = git_tag }

Then the package depends on dependency_name, which fpm will fetch from git_url and a specific git tag git_tag.

Here's a concrete example that will work, when this issue is implemented.

[dependencies]
datetime = { git = "https://github.com/wavebitscientific/datetime-fortran", tag = "v1.7.0" }

Question: If tag is omitted, should fpm fetch from the latest commit on master? I think so. Cargo does it like that as well. Then you could also do:

[dependencies]
datetime = { git = "https://github.com/wavebitscientific/datetime-fortran" }
@everythingfunctional
Copy link
Member

This is exactly my plan.

@certik
Copy link
Member

certik commented May 17, 2020

Yes, if tag is omitted, it should check out the latest master.

Otherwise I agree.

@everythingfunctional
Copy link
Member

This was finished in #85

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

3 participants