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

Rename Go module to github.com/getsops/sops/v3 #1247

Merged
merged 2 commits into from
Aug 9, 2023
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jul 11, 2023

This PR renames the Go module from go.mozilla.org/sops/v3 to
github.com/getsops/sops/v3 without a major version bump, to align
with new stewardship.

For more information around this change, refer to
#1246.

For a one-liner to change the go.mod and any import paths in your
Go project making use of this module, run:

find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;
# Or, on macOS:
find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i '' 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;

Fixes #1246

@hiddeco hiddeco force-pushed the rename-go-module branch 3 times, most recently from 0fcce61 to 38362d6 Compare July 11, 2023 21:11
@hiddeco hiddeco requested a review from a team July 11, 2023 21:11
@hiddeco
Copy link
Member Author

hiddeco commented Jul 11, 2023

This is ready for review, but drafted to give the community a bit more time to voice any concerns.

Copy link
Contributor

@devstein devstein left a comment

Choose a reason for hiding this comment

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

LGTM

@hiddeco hiddeco added this to the v3.8.0 milestone Jul 12, 2023
@hiddeco hiddeco marked this pull request as ready for review July 30, 2023 22:09
This commit renames the Go module from `go.mozilla.org/sops/v3` to
`github.com/getsops/sops/v3` without a major version bump, to align
with new stewardship.

For more information around this change, refer to
#1246.

For a one-liner to change the `go.mod` and any import paths in your
Go project making use of this module, run:

```
find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;
find /path/to/repo -type f \( -name "*.go" -o -name "go.mod" \) -exec sed -i '' 's|go.mozilla.org/sops/v3|github.com/getsops/sops/v3|g' {} \;
```

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This was historically used to generate https://go.mozilla.org/sops/,
which is not under our control.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@devstein
Copy link
Contributor

devstein commented Jul 31, 2023

@hiddeco What do you think about adding the renaming script to the README? Alternatively we could include it in the release notes

@hiddeco
Copy link
Member Author

hiddeco commented Aug 1, 2023

Would include it in the release notes, I think.

@hiddeco hiddeco merged commit 0c7375c into main Aug 9, 2023
7 checks passed
@hiddeco hiddeco deleted the rename-go-module branch August 9, 2023 08:35
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.

⚠️ Proposal to rename go.mozilla.org/sops/v3 to github.com/getsops/sops/v3 without major version bump
2 participants