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

Fix relative path handling for environment.yml files #125

Merged
merged 4 commits into from
Jul 9, 2023
Merged

Conversation

mcg1969
Copy link
Contributor

@mcg1969 mcg1969 commented Jul 8, 2023

Fixes #124

By creating the lock file in a temporary directory we frustrate conda-lock's ability to specify relative paths to the environment files. Instead we should create the lock file in a temporary filename, in the same directory.

@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #125 (8c6f6c8) into main (6f8600a) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   97.68%   97.69%   +0.01%     
==========================================
  Files           9        9              
  Lines         819      826       +7     
==========================================
+ Hits          800      807       +7     
  Misses         19       19              
Impacted Files Coverage Δ
src/conda_project/project.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@AlbertDeFusco AlbertDeFusco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thank you!

@AlbertDeFusco AlbertDeFusco enabled auto-merge (squash) July 9, 2023 01:21
Copy link
Contributor

@mattkram mattkram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice solution!

@AlbertDeFusco AlbertDeFusco merged commit dbf457b into main Jul 9, 2023
@AlbertDeFusco AlbertDeFusco deleted the relpaths branch July 9, 2023 03:11
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

Successfully merging this pull request may close these issues.

Use relative paths for the sources: field
3 participants