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

Minor improvement in the bump version script #775

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Sep 22, 2020

Change Overview

We ran the bump version script against specific dirs
which is not ideal, there are chances that some
files that we dont know of have these versions.
Now we just ignore mod,bin dirs and binary files
and running the script on the entire K10 repo.
We already introduced the issue by not running it
in the demos dir.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

which is not ideal, there are chances that some
files that we dont know of have these versions
now we just ignore mod,bin dirs and binary files
and running the script on the entire K10 repo.
We already introduced the issue by not running it
in the demos dir.
@@ -33,7 +33,7 @@ main() {
pkgs=( "$@" )
fi
# -F matches for exact words, not regular expression (-E), that is what required here
grep -F "${prev}" -r "${pkgs[@]}" | cut -d ':' -f 1 | uniq | xargs sed -ri "s/${prev}/${next//./\\.}/g"
grep -F "${prev}" -Ir "${pkgs[@]}" --exclude-dir={mod,bin} | cut -d ':' -f 1 | uniq | xargs sed -ri "s/${prev}/${next//./\\.}/g"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the significance of -I option? Does that include binaries also?

Copy link
Contributor Author

@viveksinghggits viveksinghggits Sep 22, 2020

Choose a reason for hiding this comment

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

I is to exclude binary files.

@mergify mergify bot merged commit 439f182 into master Sep 22, 2020
@mergify mergify bot deleted the improv-bumpversion branch September 22, 2020 14:48
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.

2 participants