-
-
Save carloscasalar/661c681cd103c573891ce549b9a1efcb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
export CUR="github.com/..." | |
export NEW="github.com/..." | |
go mod edit -module ${NEW} | |
find . -type f -name '*.go' -exec perl -pi -e 's/$ENV{CUR}/$ENV{NEW}/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seen here: https://gist.github.com/iamucil/7578dc7df7d72e1d78c8f5543db3fbcc?permalink_comment_id=5046377#gistcomment-5046377