-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Go module to
github.com/getsops/sops/v3
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 <[email protected]>
- Loading branch information
Showing
47 changed files
with
189 additions
and
189 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
PROJECT := go.mozilla.org/sops/v3 | ||
PROJECT := github.com/getsops/sops/v3/v3 | ||
GO := GOPROXY=https://proxy.golang.org go | ||
GOLINT := golint | ||
|
||
all: test vet generate install functional-tests | ||
origin-build: test vet generate install functional-tests-all | ||
|
||
install: | ||
$(GO) install go.mozilla.org/sops/v3/cmd/sops | ||
$(GO) install github.com/getsops/sops/v3/v3/cmd/sops | ||
|
||
tag: all | ||
git tag -s $(TAGVER) -a -m "$(TAGMSG)" | ||
|
@@ -39,13 +39,13 @@ generate: keyservice/keyservice.pb.go | |
protoc --go_out=plugins=grpc:. $< | ||
|
||
functional-tests: | ||
$(GO) build -o functional-tests/sops go.mozilla.org/sops/v3/cmd/sops | ||
$(GO) build -o functional-tests/sops github.com/getsops/sops/v3/v3/cmd/sops | ||
cd functional-tests && cargo test | ||
|
||
# Ignored tests are ones that require external services (e.g. AWS KMS) | ||
# TODO: Once `--include-ignored` lands in rust stable, switch to that. | ||
functional-tests-all: | ||
$(GO) build -o functional-tests/sops go.mozilla.org/sops/v3/cmd/sops | ||
$(GO) build -o functional-tests/sops github.com/getsops/sops/v3/v3/cmd/sops | ||
cd functional-tests && cargo test && cargo test -- --ignored | ||
|
||
# Creates variables during target re-definition. Basically this block allows the particular variables to be used in the final target | ||
|
@@ -56,11 +56,11 @@ build-deb-%: FPM_ARCH = $(word 3,$(subst -, ,$*)) | |
build-deb-%: | ||
rm -rf tmppkg | ||
mkdir -p tmppkg/usr/local/bin | ||
GOOS=$(OS) GOARCH="$(ARCH)" CGO_ENABLED=0 go build -mod vendor -o tmppkg/usr/local/bin/sops go.mozilla.org/sops/v3/cmd/sops | ||
GOOS=$(OS) GOARCH="$(ARCH)" CGO_ENABLED=0 go build -mod vendor -o tmppkg/usr/local/bin/sops github.com/getsops/sops/v3/v3/cmd/sops | ||
fpm -C tmppkg -n sops --license MPL2.0 --vendor mozilla \ | ||
--description "Sops is an editor of encrypted files that supports YAML, JSON and BINARY formats and encrypts with AWS KMS and PGP." \ | ||
-m "AJ Bahnken <[email protected]>" \ | ||
--url https://go.mozilla.org/sops \ | ||
--url https://github.com/getsops/sops/v3 \ | ||
--architecture $(FPM_ARCH) \ | ||
-v "$$(grep '^const Version' version/version.go |cut -d \" -f 2)" \ | ||
-s dir -t deb . | ||
|
@@ -76,11 +76,11 @@ build-rpm-%: FPM_ARCH = $(word 3,$(subst -, ,$*)) | |
build-rpm-%: | ||
rm -rf tmppkg | ||
mkdir -p tmppkg/usr/local/bin | ||
GOOS=$(OS) GOARCH="$(ARCH)" CGO_ENABLED=0 go build -mod vendor -o tmppkg/usr/local/bin/sops go.mozilla.org/sops/v3/cmd/sops | ||
GOOS=$(OS) GOARCH="$(ARCH)" CGO_ENABLED=0 go build -mod vendor -o tmppkg/usr/local/bin/sops github.com/getsops/sops/v3/v3/cmd/sops | ||
fpm -C tmppkg -n sops --license MPL2.0 --vendor mozilla \ | ||
--description "Sops is an editor of encrypted files that supports YAML, JSON and BINARY formats and encrypts with AWS KMS and PGP." \ | ||
-m "AJ Bahnken <[email protected]>" \ | ||
--url https://go.mozilla.org/sops \ | ||
--url https://github.com/getsops/sops/v3 \ | ||
--architecture $(FPM_ARCH) \ | ||
--rpm-os $(OS) \ | ||
-v "$$(grep '^const Version' version/version.go |cut -d \" -f 2)" \ | ||
|
@@ -99,7 +99,7 @@ else | |
fpm -C tmppkg -n sops --license MPL2.0 --vendor mozilla \ | ||
--description "Sops is an editor of encrypted files that supports YAML, JSON and BINARY formats and encrypts with AWS KMS and PGP." \ | ||
-m "Mozilla Security <[email protected]>" \ | ||
--url https://go.mozilla.org/sops \ | ||
--url https://github.com/getsops/sops/v3 \ | ||
--architecture x86_64 \ | ||
-v "$$(grep '^const Version' version/version.go |cut -d \" -f 2)" \ | ||
-s dir -t osxpkg \ | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.