-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: deprecate glide in go targets (#345)
* chore(golang/glide): deprecate in favor of go mod * chore(golang): remove glide altogether * docs(go/deps): remove go/deps-build * Auto Format * fix(go/deps): remove stray refs to glide --------- Co-authored-by: cloudpossebot <[email protected]>
- Loading branch information
1 parent
a50af33
commit ca08a9f
Showing
8 changed files
with
34 additions
and
27 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
## Lint code | ||
go/lint: $(GO) go/vet | ||
$(call assert-set,GO) | ||
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs -n 1 golint | ||
find . -type f -name '*.go' | xargs -n 1 golint | ||
|
||
## Vet code | ||
go/vet: $(GO) | ||
$(call assert-set,GO) | ||
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs $(GO) tool vet -v | ||
find . -type f -name '*.go' | xargs $(GO) tool vet -v | ||
|
||
## Format code according to Golang convention | ||
go/fmt: $(GO) | ||
$(call assert-set,GO) | ||
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs -n 1 gofmt -w -l -s | ||
find . -type f -name '*.go' | xargs -n 1 gofmt -w -l -s |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ goVersion ? "19" | ||
, overlays ? [ (self: super: { go = super."go_1_${toString goVersion}"; }) ] | ||
, pkgs ? import <nixpkgs> { inherit overlays; } | ||
}: | ||
pkgs.mkShell { | ||
packages = with pkgs; [ | ||
go #set in overlays | ||
go-tools | ||
gotools | ||
# https://github.com/golangci/golangci-lint | ||
golangci-lint | ||
# The Go language server (for IDEs and such) | ||
gopls | ||
# https://pkg.go.dev/github.com/ramya-rao-a/go-outline | ||
go-outline | ||
# https://github.com/uudashr/gopkgs | ||
gopkgs | ||
delve | ||
]; | ||
} |
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 |
---|---|---|
|
@@ -14,7 +14,6 @@ env: | |
|
||
install: | ||
- make init | ||
- make go/deps-build | ||
- make go/deps-dev | ||
|
||
script: | ||
|