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 #671: updatekeys checks for config file flag #672

Merged
merged 5 commits into from
May 8, 2020

Conversation

TuhinNair
Copy link
Contributor

The 'updatekeys' subcommand did not check for the config global string flag.
Add that check and if found use it to set configPath.

Tuhin added 4 commits May 7, 2020 21:48
The 'updatekeys' subcommand did not check for the config flag
in the command line. Add that check and if found use it to set configPath.
The 'updatekeys' subcommand did not check for the config global string flag.
 Add that check and if found use it to set configPath.
The 'updatekeys' subcommand did not check for the config global string flag.
Add that check and if found use it to set configPath.

 Edit: Remove mistake file addition
@codecov-io
Copy link

Codecov Report

Merging #672 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #672   +/-   ##
========================================
  Coverage    38.23%   38.23%           
========================================
  Files           23       23           
  Lines         3329     3329           
========================================
  Hits          1273     1273           
  Misses        1927     1927           
  Partials       129      129           

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 99adfae...c18582e. Read the comment docs.

Copy link
Contributor

@autrilla autrilla left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

We should probably clean up the flags at some point though...

cmd/sops/main.go Outdated Show resolved Hide resolved
@ajvb ajvb linked an issue May 8, 2020 that may be closed by this pull request
@autrilla autrilla merged commit a7b6c55 into getsops:develop May 8, 2020
rochaporto pushed a commit to rochaporto/sops that referenced this pull request Jun 22, 2020
* update 'updatekeys' subcommand to use config (if exists) from commandline

* Fix getsops#671: `updatekeys` checks for config file flag

The 'updatekeys' subcommand did not check for the config flag
in the command line. Add that check and if found use it to set configPath.

* Fix getsops#671: `updatekeys` checks for config file flag

The 'updatekeys' subcommand did not check for the config global string flag.
 Add that check and if found use it to set configPath.

* Fix getsops#671: `updatekeys` checks for config file flag

The 'updatekeys' subcommand did not check for the config global string flag.
Add that check and if found use it to set configPath.

 Edit: Remove mistake file addition

* Update cmd/sops/main.go

Co-authored-by: Adrian Utrilla <adrianutrilla@gmail.com>
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.

updatekeys appears to ignore the config file switch
4 participants