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

Bring -e|--env args in line with docker #487

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

timvisher
Copy link
Contributor

Closes #473

This closes the gap between how docker run -e|--env and circleci local execute -e|--env behaves. Now, as in docker run, bare -e|--env VAR arguments are resolved from the local environment and passed on to picard properly. Arguments that are fully specified are never resolved from the environment and arguments are still required to be passed in order to forward them on to picard (i.e. there isn't any automatic inclusion of the environment in the picard arguments).

I'm happy to spin out the Vagrantfile if that's not welcome just yet but rather than figuring out to get Docker for Mac and golang set up on my MacBook I figured I'd just make an environment that anyone can benefit from.

Obviously I'd like to clean up the commits prior to merge but I wanted to get the discussion going.

@timvisher timvisher requested a review from a team as a code owner October 8, 2020 14:31
@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #487 into master will decrease coverage by 0.01%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #487      +/-   ##
==========================================
- Coverage   26.84%   26.82%   -0.02%     
==========================================
  Files          35       35              
  Lines        4739     4764      +25     
==========================================
+ Hits         1272     1278       +6     
- Misses       3341     3356      +15     
- Partials      126      130       +4     
Impacted Files Coverage Δ
local/local.go 36.92% <40.00%> (-1.50%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 026f9bf...10f8e3e. Read the comment docs.

@timvisher
Copy link
Contributor Author

Let me know whether there's interest in merging this and I'll try to fix up the code coverage.

@timvisher
Copy link
Contributor Author

Ping. :)

@timvisher
Copy link
Contributor Author

Ping on this. :)

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.

Enhance circleci local execute -e FOO to automatically read from the environment like docker
1 participant