From 2be3e2b7a0cf89743dda426888f36cd3866f1b7b Mon Sep 17 00:00:00 2001 From: "Mr. Z" Date: Mon, 12 Feb 2024 09:10:54 -0500 Subject: [PATCH] Feature: Build binaries and automatically create release on Tag creation (#47) * chore: updated linter version * chore: upgraded deps * fix: linter issues after upgrading * feat: build binaries on release, adding tag * fix: install cross compilation for ARM64 * fix: add new flags for compilation * fix: turn off arm64 for testing * fix: trying another version of build configurations * fix: replaced name, need to test * chore: minor formatting and spelling fix * fix: for windows path, suggestion from copilot * fix: attempt to build with cgo enabled * fix: adding cache to speed up runs * fix: removing additional vars * test: working on linux only release * fix: for yaml linter * fix: file extension does not match * fix: names, tags, deprecated fields * fix: add changelog and checksums * feat: added darwin binary * fix: for removing gcc from darwin * fix: attempt to fix a perm issue on installing golangci * fix: add more logging to lint install * fix: set the gopath env * fix: attempt to overwrite go if detected * fix: working on safer brew execution * fix: only run one install * chore: cleanup of files * chore: cleanup old code * fix: added more timeout to linting * fix: only install if needed * fix: improved lint function * fix: make the ids unique --- .github/workflows/release.yml | 116 ++++++++++++++++++++++-- .github/workflows/run-tests.yml | 2 +- .golangci.yml | 2 +- .goreleaser-for-darwin.yml | 56 ++++++++++++ .goreleaser-for-linux.yml | 61 +++++++++++++ .goreleaser.yml | 103 --------------------- .make/go.mk | 40 +++++--- Makefile | 4 - README.md | 62 ++++++------- app/config/mock_test.go | 6 +- app/models/model/model_metadata_test.go | 2 +- docs/config.md | 8 +- go.mod | 4 +- go.sum | 8 +- 14 files changed, 299 insertions(+), 175 deletions(-) create mode 100644 .goreleaser-for-darwin.yml create mode 100644 .goreleaser-for-linux.yml delete mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73276ce..e4b0098 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ name: release env: GO111MODULE: on + GO_VERSION: 1.21 on: push: @@ -13,24 +14,125 @@ permissions: contents: write jobs: - goreleaser: + build-linux-binary: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + - name: gcc install + run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: ${{ env.GO_VERSION }} + - name: Cache code + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod # Module download cache + ~/.cache/go-build # Build cache (Linux) + ~/Library/Caches/go-build # Build cache (Mac) + "%LocalAppData%\\go-build" # Build cache (Windows) + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5.0.0 + uses: goreleaser/goreleaser-action@v3 with: - distribution: goreleaser version: latest - args: release --clean --debug + args: release --skip=publish --verbose --config .goreleaser-for-linux.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - #- name: Syndicate to GoDocs - # run: make godocs + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: alert_system_linux + path: | + dist/alert_system_*.zip + dist/checksums.txt + dist/CHANGELOG.md + + build-darwin-binary: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - name: Cache code + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod # Module download cache + ~/.cache/go-build # Build cache (Linux) + ~/Library/Caches/go-build # Build cache (Mac) + "%LocalAppData%\\go-build" # Build cache (Windows) + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v3 + with: + version: latest + args: release --skip=publish --verbose --config .goreleaser-for-darwin.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: alert_system_darwin + path: | + dist/alert_system_*.zip + dist/checksums.txt + dist/CHANGELOG.md + + create-release: + needs: [build-linux-binary, build-darwin-binary] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Make directories + run: | + mkdir -p ./dist/linux + mkdir -p ./dist/darwin + mkdir -p ./dist/windows + - name: Download linux binaries + uses: actions/download-artifact@v4 + with: + name: alert_system_linux + path: ./tmp-build/linux + - name: Download darwin binaries + uses: actions/download-artifact@v4 + with: + name: alert_system_darwin + path: ./tmp-build/darwin + - name: Get tag + uses: little-core-labs/get-git-tag@v3.0.2 + id: tag + - name: Prepare ./dist folder + run: | + mkdir -p ./dist + mv ./tmp-build/linux/*.zip ./dist + mv ./tmp-build/darwin/*.zip ./dist + cat ./tmp-build/linux/checksums.txt >> ./dist/checksums.txt + cat ./tmp-build/linux/CHANGELOG.md >> ./dist/CHANGELOG.md + - name: Release + uses: softprops/action-gh-release@v1 + with: + body_path: dist/CHANGELOG.md + prerelease: ${{ contains(github.ref, '-rc.') }} + files: | + dist/*.zip + dist/CHANGELOG.md + env: + COMMIT_TAG: ${{steps.tag.outputs.tag}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f513a82..70b16eb 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -57,7 +57,7 @@ jobs: ~/go/pkg/mod # Module download cache ~/.cache/go-build # Build cache (Linux) ~/Library/Caches/go-build # Build cache (Mac) - '%LocalAppData%\go-build' # Build cache (Windows) + "%LocalAppData%\\go-build" # Build cache (Windows) key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- diff --git a/.golangci.yml b/.golangci.yml index bd9b026..256af2f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,7 @@ run: concurrency: 4 # timeout for analysis, e.g. 30s, 5m, default is 1m - timeout: 6m + timeout: 10m # exit code when at least one issue was found, default is 1 issues-exit-code: 1 diff --git a/.goreleaser-for-darwin.yml b/.goreleaser-for-darwin.yml new file mode 100644 index 0000000..2a012f4 --- /dev/null +++ b/.goreleaser-for-darwin.yml @@ -0,0 +1,56 @@ +# Make sure to check the documentation at http://goreleaser.com +# --------------------------- +# General +# --------------------------- +before: + hooks: + - make all +snapshot: + name_template: "{{ .Tag }}" +changelog: + sort: asc + filters: + exclude: + - '^.github:' + - '^.vscode:' + - '^docs:' + - '^test:' + +# --------------------------- +# Builder +# +# CGO is enabled and inspiration came from: +# https://github.com/goreleaser/goreleaser-cross-example +# https://github.com/goreleaser/goreleaser-cross-example-sysroot +# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-darwin.yaml +# --------------------------- +builds: + - id: darwin-build + main: ./cmd/ + binary: alert_system + goos: + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=1 + mod_timestamp: "{{ .CommitTimestamp }}" + ldflags: + - -s -w -X main.version={{.Version}} + +# --------------------------- +# Archives + Checksums +# --------------------------- +archives: + - id: alert_system_darwin + builds: + - darwin-build + name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: false + format: zip + files: + - LICENSE +checksum: + name_template: "checksums.txt" + algorithm: sha256 \ No newline at end of file diff --git a/.goreleaser-for-linux.yml b/.goreleaser-for-linux.yml new file mode 100644 index 0000000..2026d8e --- /dev/null +++ b/.goreleaser-for-linux.yml @@ -0,0 +1,61 @@ +# Make sure to check the documentation at http://goreleaser.com +# --------------------------- +# General +# --------------------------- +before: + hooks: + - make all +snapshot: + name_template: "{{ .Tag }}" +changelog: + sort: asc + filters: + exclude: + - '^.github:' + - '^.vscode:' + - '^docs:' + - '^test:' + +# --------------------------- +# Builder +# +# CGO is enabled and inspiration came from: +# https://github.com/goreleaser/goreleaser-cross-example +# https://github.com/goreleaser/goreleaser-cross-example-sysroot +# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-linux.yaml +# --------------------------- +builds: + - id: linux-build + main: ./cmd/ + binary: alert_system + goos: + - linux + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=1 + mod_timestamp: "{{ .CommitTimestamp }}" + ldflags: + - -s -w -X main.version={{.Version}} + overrides: + - goos: linux + goarch: arm64 + env: + - CC=aarch64-linux-gnu-gcc + +# --------------------------- +# Archives + Checksums +# --------------------------- +archives: + - id: alert_system_linux + builds: + - linux-build + name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: false + format: zip + files: + - LICENSE +checksum: + name_template: "checksums.txt" + algorithm: sha256 \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 3d3f9b9..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,103 +0,0 @@ -# Make sure to check the documentation at http://goreleaser.com -# --------------------------- -# General -# --------------------------- -before: - hooks: - - make all -snapshot: - name_template: "{{ .Tag }}" -changelog: - sort: asc - filters: - exclude: - - '^.github:' - - '^.vscode:' - - '^test:' - -# --------------------------- -# Builder -# --------------------------- -builds: - - env: - - CGO_ENABLED=0 # Required for SQLite - - GO111MODULE=on - #- CGO_CFLAGS=-Wno-error=unused-command-line-argument - main: ./cmd/ - binary: "alert_system" - goarch: - - amd64 - - arm64 - goos: - - darwin - - linux - goarm: - - 6 - - 7 - goamd64: - - v2 - - v3 - mod_timestamp: "{{ .CommitTimestamp }}" - ldflags: - - -s -w -X github.com/bitcoin-sv/{{ .ProjectName }}/cmd.Version={{ .Version }} - -# --------------------------- -# Archives + Checksums -# --------------------------- -archives: - - wrap_in_directory: true - format: tar.gz - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_{{ .Version }}' - -checksum: - name_template: "{{ .ProjectName }}_checksums.txt" - algorithm: sha256 - -# --------------------------- -# GitHub Release -# --------------------------- -release: - prerelease: true - name_template: "Release v{{.Version}}" - -# --------------------------- -# Announce -# --------------------------- -announce: - - # See more at: https://goreleaser.com/customization/announce/#slack - slack: - enabled: false - message_template: '{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/bitcoin-sv/{{ .ProjectName }}/releases/tag/{{ .Tag }}' - channel: '#test_slack' - # username: '' - # icon_emoji: '' - # icon_url: '' - - # See more at: https://goreleaser.com/customization/announce/#twitter - twitter: - enabled: false - message_template: '{{ .ProjectName }} {{ .Tag }} is out!' - - # See more at: https://goreleaser.com/customization/announce/#discord - discord: - enabled: false - message_template: '{{ .ProjectName }} {{ .Tag }} is out!' - # Defaults to `GoReleaser` - author: '' - # Defaults to `3888754` - the grey-ish from goreleaser - color: '' - # Defaults to `https://goreleaser.com/static/avatar.png` - icon_url: '' - - # See more at: https://goreleaser.com/customization/announce/#reddit - reddit: - enabled: false - # Application ID for Reddit Application - application_id: "" - # Username for your Reddit account - username: "" - # Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}` - # url_template: 'https://github.com/bitcoin-sv/{{ .ProjectName }}/releases/tag/{{ .Tag }}' - # Defaults to `{{ .ProjectName }} {{ .Tag }} is out!` - title_template: '{{ .ProjectName }} {{ .Tag }} is out!' \ No newline at end of file diff --git a/.make/go.mk b/.make/go.mk index 6337991..29ef69b 100644 --- a/.make/go.mk +++ b/.make/go.mk @@ -22,7 +22,7 @@ endif .PHONY: bench bench: ## Run all benchmarks in the Go application @echo "running benchmarks..." - @go test ./... -bench=. -benchmem $(TAGS) + @go test -bench=. -benchmem $(TAGS) .PHONY: build-go build-go: ## Build the Go application (locally) @@ -65,19 +65,31 @@ install-go: ## Install the application (Using Native Go) .PHONY: lint lint: ## Run the golangci-lint application (install if not found) - @echo "installing golangci-lint..." - @#Travis (has sudo) - @if [ "$(shell command -v golangci-lint)" = "" ] && [ $(TRAVIS) ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi; - @#AWS CodePipeline - @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(CODEBUILD_BUILD_ID)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2; fi; - @#GitHub Actions - @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(GITHUB_WORKFLOW)" != "" ]; then curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $(go env GOPATH)/bin v1.55.2; fi; - @#Brew - MacOS - @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(shell command -v brew)" != "" ]; then brew install golangci-lint; fi; - @#MacOS Vanilla - @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(shell command -v brew)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- v1.55.2; fi; - @echo "running golangci-lint..." - @golangci-lint run --verbose + @if [ "$(shell which golangci-lint)" = "" ]; then \ + if [ "$(shell command -v brew)" != "" ]; then \ + echo "Brew detected, attempting to install golangci-lint..."; \ + if ! brew list golangci-lint &>/dev/null; then \ + brew install golangci-lint; \ + else \ + echo "golangci-lint is already installed via brew."; \ + fi; \ + else \ + echo "Installing golangci-lint via curl..."; \ + GOPATH=$$(go env GOPATH); \ + if [ -z "$$GOPATH" ]; then GOPATH=$$HOME/go; fi; \ + echo "Installation path: $$GOPATH/bin"; \ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$GOPATH/bin v1.56.1; \ + fi; \ + fi; \ + if [ "$(TRAVIS)" != "" ]; then \ + echo "Travis CI environment detected."; \ + elif [ "$(CODEBUILD_BUILD_ID)" != "" ]; then \ + echo "AWS CodePipeline environment detected."; \ + elif [ "$(GITHUB_WORKFLOW)" != "" ]; then \ + echo "GitHub Actions environment detected."; \ + fi; \ + echo "Running golangci-lint..."; \ + golangci-lint run --verbose .PHONY: test test: ## Runs lint and ALL tests diff --git a/Makefile b/Makefile index 0c02dcb..30dfbf3 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,3 @@ clean: ## Remove previous builds and any cached data @$(MAKE) clean-mods @test $(DISTRIBUTIONS_DIR) @if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi - -.PHONY: release -release:: ## Runs common.release then runs godocs - @$(MAKE) godocs diff --git a/README.md b/README.md index bf84d47..f472eca 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Configuration files can be found in the [config](app/config/envs) directory. **Note:** to use a custom settings file, it needs to be mounted and the appropriate environment variables set. Running it as below will run an ephemeral database but the container should sync up from the peers on the network on startup. ### podman ``` -$ podman run -u root -e P2P_PORT=9908 -e P2P_IP=0.0.0.0 --expose 9908 docker.io/galtbv/alert-system:0.0.2 +$ podman run -u root -e P2P_PORT=9908 -e P2P_IP=0.0.0.0 --expose 9908 docker.io/bsvb/alert-system:0.0.2 ``` ## Documentation @@ -65,36 +65,36 @@ make help List of all current commands: ```text -all Runs multiple commands -clean Remove previous builds and any cached data -clean-mods Remove all the Go mod cache -coverage Shows the test coverage -diff Show the git diff -generate Runs the go generate command in the base of the repo -godocs Sync the latest tag with GoDocs -help Show this help message -install Install the application -install-go Install the application (Using Native Go) -install-releaser Install the GoReleaser application -lint Run the golangci-lint application (install if not found) -release Full production release (creates release in GitHub) -release Runs common.release then runs godocs -release-snap Test the full release (build binaries) -release-test Full production test release (everything except deploy) -replace-version Replaces the version in HTML/JS (pre-deploy) -tag Generate a new tag and push (tag version=0.0.0) -tag-remove Remove a tag if found (tag-remove version=0.0.0) -tag-update Update an existing tag to current commit (tag-update version=0.0.0) -test Runs lint and ALL tests -test-ci Runs all tests via CI (exports coverage) -test-ci-no-race Runs all tests via CI (no race) (exports coverage) -test-ci-short Runs unit tests via CI (exports coverage) -test-no-lint Runs just tests -test-short Runs vet, lint and tests (excludes integration tests) -test-unit Runs tests and outputs coverage -uninstall Uninstall the application (and remove files) -update-linter Update the golangci-lint package (macOS only) -vet Run the Go vet application +all Runs multiple commands +clean Remove previous builds and any cached data +clean-mods Remove all the Go mod cache +coverage Shows the test coverage +diff Show the git diff +generate Runs the go generate command in the base of the repo +godocs Sync the latest tag with GoDocs +help Show this help message +install Install the application +install-go Install the application (Using Native Go) +install-releaser Install the GoReleaser application +lint Run the golangci-lint application (install if not found) +release Full production release (creates release in GitHub) +release Runs common.release then runs godocs +release-snap Test the full release (build binaries) +release-test Full production test release (everything except deploy) +replace-version Replaces the version in HTML/JS (pre-deploy) +tag Generate a new tag and push (tag version=0.0.0) +tag-remove Remove a tag if found (tag-remove version=0.0.0) +tag-update Update an existing tag to current commit (tag-update version=0.0.0) +test Runs lint and ALL tests +test-ci Runs all tests via CI (exports coverage) +test-ci-no-race Runs all tests via CI (no race) (exports coverage) +test-ci-short Runs unit tests via CI (exports coverage) +test-no-lint Runs just tests +test-short Runs vet, lint and tests (excludes integration tests) +test-unit Runs tests and outputs coverage +uninstall Uninstall the application (and remove files) +update-linter Update the golangci-lint package (macOS only) +vet Run the Go vet application ``` diff --git a/app/config/mock_test.go b/app/config/mock_test.go index b9fd154..182f7d8 100644 --- a/app/config/mock_test.go +++ b/app/config/mock_test.go @@ -12,7 +12,7 @@ import ( // TestBanPeer tests the BanPeer method func TestBanPeer(t *testing.T) { mockNode := &mocks.Node{ - BanPeerFunc: func(ctx context.Context, peer string) error { + BanPeerFunc: func(_ context.Context, peer string) error { // Mock behavior here if peer == "expected_peer_address" { return nil @@ -29,7 +29,7 @@ func TestBanPeer(t *testing.T) { // TestUnBanPeer tests the UnBanPeer method func TestUnBanPeer(t *testing.T) { mockNode := &mocks.Node{ - UnbanPeerFunc: func(ctx context.Context, peer string) error { + UnbanPeerFunc: func(_ context.Context, peer string) error { // Mock behavior here if peer == "expected_peer_address" { return nil @@ -46,7 +46,7 @@ func TestUnBanPeer(t *testing.T) { // TestInvalidateBlock tests the InvalidateBlock method func TestInvalidateBlock(t *testing.T) { mockNode := &mocks.Node{ - InvalidateBlockFunc: func(ctx context.Context, hash string) error { + InvalidateBlockFunc: func(_ context.Context, hash string) error { // Mock behavior here if hash == "expected_hash" { return nil diff --git a/app/models/model/model_metadata_test.go b/app/models/model/model_metadata_test.go index 55b0874..3e76c55 100644 --- a/app/models/model/model_metadata_test.go +++ b/app/models/model/model_metadata_test.go @@ -234,7 +234,7 @@ func TestMetadata_GormDBDataType(t *testing.T) { assert.Equal(t, datastore.JSON, m.GormDBDataType(db, nil)) }) - t.Run("postgres dialector", func(t *testing.T) { + t.Run("postgres dialector", func(_ *testing.T) { /*dsn := "host=localhost user=postgres password=gorm dbname=gorm port=9920 sslmode=disable TimeZone=Asia/Shanghai" db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{}) require.NotNil(t, db) diff --git a/docs/config.md b/docs/config.md index 2038b99..71ca374 100644 --- a/docs/config.md +++ b/docs/config.md @@ -19,7 +19,7 @@ | datastore.table_prefix | "alert_system" | Prefix for database table names | | **datastore.sqlite** | `` | SQLite specific configuration | | datastore.sqlite.database_path | "alert_system_datastore.db" | Path to the SQLite database file | -| datstore.sqlite.shared | false | Use a shared SQLite database | +| datastore.sqlite.shared | false | Use a shared SQLite database | | **sql_read** | `` | Configuration for the read SQL database connection | | **sql_write** | `` | Configuration for the write SQL database connection | | sql_read/write.driver | "postgresql" | Database driver (e.g., postgresql) | @@ -30,7 +30,7 @@ | p2p.port | "9906" | Port for P2P communication | | p2p.alert_system_protocol_id | "/bitcoin-testnet/alert-system/0.0.1" | Protocol ID for the alert system on the P2P network | | ... | | (Additional P2P parameters) | -| **rpc_connections** | `[]` | List of RPC connections | -| rpc_connections[0].user | "galt" | RPC username | -| rpc_connections[0].password | "galt" | RPC password | +| **rpc_connections** | `[]` | List of RPC connections | +| rpc_connections[0].user | "testUser" | RPC username | +| rpc_connections[0].password | "testPw" | RPC password | | rpc_connections[0].host | "http://localhost:8333" | RPC host | diff --git a/go.mod b/go.mod index ed6ac52..107d290 100644 --- a/go.mod +++ b/go.mod @@ -16,8 +16,8 @@ require ( github.com/libsv/go-bn v0.0.2 github.com/libsv/go-bt/v2 v2.2.5 github.com/libsv/go-p2p v0.1.9 - github.com/mrz1836/go-api-router v0.7.1 - github.com/mrz1836/go-datastore v0.5.13 + github.com/mrz1836/go-api-router v0.7.2 + github.com/mrz1836/go-datastore v0.5.14 github.com/mrz1836/go-logger v0.3.3 github.com/multiformats/go-multiaddr v0.12.2 github.com/newrelic/go-agent/v3/integrations/nrhttprouter v1.0.2 diff --git a/go.sum b/go.sum index f2c62bc..63a28ba 100644 --- a/go.sum +++ b/go.sum @@ -328,10 +328,10 @@ github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/mrz1836/go-api-router v0.7.1 h1:CD5eRWtpI6uAFTTS6ilostM9GlI0YXg7YJdJQiY8wpo= -github.com/mrz1836/go-api-router v0.7.1/go.mod h1:x9W150CQr7BmHZmDUls1GaNVcarec29HlhQ3dbSmKO4= -github.com/mrz1836/go-datastore v0.5.13 h1:oJrm7lJg0LtaR7HO1BvyeFB4cpJic3YcRu4XDm8CtVs= -github.com/mrz1836/go-datastore v0.5.13/go.mod h1:sRbHLRKhKdC0IR3hRnu2Qgn+OlB2wKYfl+jsiUT8cPo= +github.com/mrz1836/go-api-router v0.7.2 h1:/BXAAzbhYsjsMACITfR58RH1agK+JraDsT9VWjaKVqo= +github.com/mrz1836/go-api-router v0.7.2/go.mod h1:Q1uiOk+f76Yw19mI10VfaedqnyHrl05x7/Nwz+QOs5Q= +github.com/mrz1836/go-datastore v0.5.14 h1:ebj2FWrY491xtKI7UUO5RG+4RjhT0DLxVKMJkPB8Zik= +github.com/mrz1836/go-datastore v0.5.14/go.mod h1:TGHKk0UKklxrZJx4jQW/bWsEeil85TVq472Kgm/jErY= github.com/mrz1836/go-logger v0.3.3 h1:L/u+So5yrsYi7KhkFWlZ8v28cmoHt6aB7X8uVEIEHu8= github.com/mrz1836/go-logger v0.3.3/go.mod h1:hlP6K2fnTcisDbcYw9u3eV+1TW5jCsYUfoujA4+38NY= github.com/mrz1836/go-parameters v0.4.1 h1:8ElvGs8hzk0/hz2t5an2FmS9SPfWozGn2nXUvYwI+Uk=