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

refactor: remove use of os.Chdir #2683

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

refactor: remove use of os.Chdir #2683

wants to merge 1 commit into from

Conversation

phillebaba
Copy link
Member

Description

This change removes use of os.Chdir from exported code.

Related Issue

Fixes #2682

Checklist before merging

@phillebaba phillebaba requested review from dgershman and a team as code owners July 1, 2024 09:30
@phillebaba phillebaba marked this pull request as draft July 1, 2024 09:30
Copy link

netlify bot commented Jul 1, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit e66e868
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/6682774c84ea9b00081f4bb2

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes missing coverage. Please review.

Project coverage is 19.19%. Comparing base (601a282) to head (e66e868).

Files Patch % Lines
src/pkg/packager/dev.go 0.00% 6 Missing ⚠️
src/pkg/packager/create.go 0.00% 2 Missing ⚠️
src/pkg/packager/prepare.go 0.00% 2 Missing ⚠️
src/pkg/packager/publish.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2683      +/-   ##
==========================================
+ Coverage   19.16%   19.19%   +0.02%     
==========================================
  Files         170      170              
  Lines       12131    12109      -22     
==========================================
- Hits         2325     2324       -1     
+ Misses       9523     9502      -21     
  Partials      283      283              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phillebaba
Copy link
Member Author

I realize that packager needs to be refactored before we can do this. There are too many struct properties being used as function parameters which makes tracing down paths more difficult than it should be.

@schristoff-du
Copy link
Contributor

This is probably my favorite PR of yours so far

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.

Remove use of os.Chdir
2 participants