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

adding scripts for preparing new config version #1584

Merged
merged 11 commits into from
Feb 7, 2019

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Feb 1, 2019

try it out with bash hack/new_version.sh, let me know what you think!

@dgageot

@dgageot
Copy link
Contributor

dgageot commented Feb 4, 2019

@balopat Sorry I forgot to take a look. Will do that tomorrow

@balopat balopat mentioned this pull request Feb 6, 2019
@codecov-io
Copy link

codecov-io commented Feb 6, 2019

Codecov Report

Merging #1584 into master will increase coverage by 0.69%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1584      +/-   ##
==========================================
+ Coverage   46.31%   47.01%   +0.69%     
==========================================
  Files         117      117              
  Lines        5106     5118      +12     
==========================================
+ Hits         2365     2406      +41     
+ Misses       2508     2471      -37     
- Partials      233      241       +8
Impacted Files Coverage Δ
pkg/skaffold/build/local/local.go 51.72% <0%> (-17.03%) ⬇️
pkg/skaffold/build/local/docker.go 47.5% <0%> (-10%) ⬇️
cmd/skaffold/app/cmd/cmd.go 0% <0%> (ø) ⬆️
pkg/skaffold/build/sequence.go 100% <0%> (ø) ⬆️
cmd/skaffold/app/cmd/runner.go 0% <0%> (ø) ⬆️
pkg/skaffold/build/kaniko/kaniko.go 0% <0%> (ø) ⬆️
pkg/skaffold/build/gcb/cloud_build.go 0% <0%> (ø) ⬆️
pkg/skaffold/runner/runner.go 61.74% <0%> (+0.8%) ⬆️
pkg/skaffold/build/parallel.go 88.63% <0%> (+88.63%) ⬆️

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 36782cc...2d5d070. Read the comment docs.


sed -i pkg/skaffold/schema/latest/config.go -e "s;$CURRENT_VERSION;$NEW_VERSION;g"

find integration -name "skaffold.yaml" | xargs -I xx sed -i xx -e "s;$CURRENT_VERSION;$NEW_VERSION;g"
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO find/xargs should always be used with -print0/-0 in scripts.

find integration -name "skaffold.yaml" -print0 | xargs -0 -I xx sed -i xx -e "s;$CURRENT_VERSION;$NEW_VERSION;g"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why always? in this case it's definitely a relative path operation and everything resolves nicely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah ignore me - I misunderstood the flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the recommendation 👍

Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

lgtm

@balopat balopat merged commit 5c835ed into GoogleContainerTools:master Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants