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(app) fix work dir in managed runs #74

Merged
merged 6 commits into from
Sep 19, 2023
Merged

fix(app) fix work dir in managed runs #74

merged 6 commits into from
Sep 19, 2023

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Sep 18, 2023

When running in managed mode, the work dir is not the cwd: the work dir is "/root/" and contains the lifecycle directories, while the cwd is typically the directory containing the project file, mounted as "/root/project/" inside the instance.

Fixes #53

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #74 (a308eff) into main (3c6bcf2) will increase coverage by 0.40%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
+ Coverage   98.40%   98.80%   +0.40%     
==========================================
  Files          22       22              
  Lines         750      752       +2     
  Branches      109      110       +1     
==========================================
+ Hits          738      743       +5     
+ Misses          9        6       -3     
  Partials        3        3              
Files Changed Coverage Δ
craft_application/application.py 95.83% <100.00%> (+1.85%) ⬆️

When running in managed mode, the work dir is _not_ the cwd: the
work dir is "/root/" and contains the lifecycle directories, while the
cwd is typically the directory containing the project file, mounted as
"/root/project/" inside the instance.

Fixes #53
@tigarmo tigarmo marked this pull request as ready for review September 18, 2023 16:59
@tigarmo
Copy link
Contributor Author

tigarmo commented Sep 18, 2023

No idea what's going on with the macos run

pyproject.toml Outdated Show resolved Hide resolved
craft_application/application.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@cmatsuoka cmatsuoka left a comment

Choose a reason for hiding this comment

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

Thanks!

@tigarmo tigarmo merged commit c348918 into main Sep 19, 2023
6 checks passed
@tigarmo tigarmo deleted the managed-work-dir branch September 19, 2023 17:30
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.

parts, stage and prime should only live in the managed environment
4 participants