-
Notifications
You must be signed in to change notification settings - Fork 430
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
Improve heuristics around meta.yaml source path and git_url #783
Comments
Question to the community: Are there any compelling use cases for |
I think we're stuck between a rock and a hard place. A user complained that a recipe was not building because conda build was looking for git, but git was not installed. This was on windows. Conda build was looking for git because a .git folder was present, and the I see the |
Was that behavior observed using the latest version of the master branch, or using conda-build 1.19.0? I think the behavior here has been slightly improved in the master branch. Instead of simply seeing an empty string for |
The |
I now see that the |
The only practical difference between source/git_url and source/path should now be that git_url is a clone of a repository and path is copy of the repository. Using path will allow you to build packages with unstaged/uncommited changes in working directory. git_url will only build up to/including the latest commit. |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
We hit a subtle issue when defining:
when we should have set:
This shows up as an empty version string in any jinja templates, and is somewhat subtle to debug.
Because conda decides to set git related env vars based on the presence of
source/git_url
, these vars weren't set for the jinja templates, leading to an empty version string.Possible solutions:
source/path
keyThe text was updated successfully, but these errors were encountered: