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

feat: add a single working-dir option #378

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

rchincha
Copy link
Contributor

Fixes issue #377

Signed-off-by: Ramkumar Chinchani rchincha@cisco.com

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@smoser smoser left a comment

Choose a reason for hiding this comment

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

Does this work?
Nothing changed seems to reference the newly-added WorkingDir, so I don't know how it would.

@hallyn
Copy link
Contributor

hallyn commented Jan 6, 2023

Yeah that's odd - was a hunk of patch (where the stackerdir etc are set relative to workingdir if the former is not set and the latter is) accidentally dropped?

@rchincha
Copy link
Contributor Author

Updated the PR, basically:

  1. work-dir has no defaults
  2. you can set work-dir but also individually override stacker-dir, etc
  3. if stacker-dir not set, then work-dir/, etc

@rchincha rchincha force-pushed the single-dir branch 7 times, most recently from 56ca427 to 959d75e Compare February 2, 2023 01:18
cmd/stacker/main.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #378 (4ce7340) into main (5cddc93) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #378      +/-   ##
==========================================
- Coverage   12.08%   12.08%   -0.01%     
==========================================
  Files          44       44              
  Lines        5451     5452       +1     
==========================================
  Hits          659      659              
- Misses       4675     4676       +1     
  Partials      117      117              
Impacted Files Coverage Δ
pkg/types/config.go 22.22% <0.00%> (-2.78%) ⬇️

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

@rchincha rchincha force-pushed the single-dir branch 2 times, most recently from a53f613 to babe013 Compare March 10, 2023 05:03
Fixes issue project-stacker#377

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Copy link
Contributor

@smoser smoser left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha rchincha merged commit 7c5e09c into project-stacker:main Mar 10, 2023
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.

Feat: just specify a single --dir under which other working dirs can be created
3 participants