-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:ChainSafe/gossamer into noot…
…/fixes
- Loading branch information
Showing
194 changed files
with
4,803 additions
and
764 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo "Executing pre push hook. To disable do 'git push --no-verify'" | ||
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$") | ||
|
||
make lint | ||
if [ $? -ne 0 ] | ||
then | ||
echo "***ERROR*** 'make lint' failed. Fix errors before proceeding to push." | ||
exit 1 | ||
if [[ "$STAGED_GO_FILES" = "" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Note: this won't detect unneeded `// indirect` commented dependencies | ||
go mod tidy | ||
git diff --exit-code -- go.mod go.sum >/dev/null | ||
if [ $? -ne 0 ] | ||
then | ||
echo "***ERROR*** 'go.mod' file is updated. Add the file before proceeding to push." | ||
exit 1 | ||
fi | ||
make lint |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ env: | |
|
||
jobs: | ||
publish-code-coverage: | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
go-version: [1.17.x] | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ env: | |
|
||
jobs: | ||
unit-tests: | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
go-version: [1.17.x] | ||
|
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 |
---|---|---|
|
@@ -17,11 +17,10 @@ help: Makefile | |
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /' | ||
@echo | ||
|
||
## lint: Lints project files, go gets golangci-lint if missing. Runs `golangci-lint` on project files. | ||
.PHONY: lint | ||
lint: | ||
./scripts/install-lint.sh | ||
${GOPATH}/bin/golangci-lint run | ||
lint: | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
golangci-lint run | ||
|
||
clean: | ||
rm -fr ./bin | ||
|
@@ -89,8 +88,7 @@ build-debug: clean | |
init: | ||
./bin/gossamer init --force | ||
|
||
## init-repo: Set initial configuration for the repo | ||
init-repo: | ||
githooks: | ||
git config core.hooksPath .githooks | ||
|
||
## start: Starts application from binary executable in `./bin/gossamer` with built-in key alice | ||
|
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.