diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdc3dd6..32b37f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: make_action: ["build", "lint"] runs-on: ubuntu-latest - name: "${{matrix.make_action}} restake-go" + name: "${{matrix.make_action}} router" steps: - uses: actions/checkout@v3 - name: Setup Go diff --git a/Makefile b/Makefile index 26ae680..0abca30 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,7 @@ #!/usr/bin/make -f -DOCKER := $(shell which docker) - BUILDDIR ?= $(CURDIR)/build -BRANCH := $(shell git rev-parse --abbrev-ref HEAD) -COMMIT := $(shell git log -1 --format='%H') - -DIRTY := -dirty -ifeq (,$(shell git status --porcelain)) - DIRTY := -endif - -VERSION := $(shell git describe --tags --exact-match 2>/dev/null) -# if VERSION is empty, then populate it with branch's name and raw commit hash -ifeq (,$(VERSION)) - VERSION := $(BRANCH)-$(COMMIT) -endif - -VERSION := $(VERSION)$(DIRTY) -GIT_REVISION := $(shell git rev-parse HEAD)$(DIRTY) -GO_SYSTEM_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1-2) - -BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)' - ############################################################################### ### Build ### ############################################################################### @@ -32,7 +10,7 @@ BUILD_TARGETS := build build: mkdir -p $(BUILDDIR)/ - go build -mod=readonly -ldflags '$(ldflags)' -trimpath -o $(BUILDDIR) ./...; + go build -mod=readonly ./...; clean: rm -rf $(BUILDDIR)/* diff --git a/go.mod b/go.mod index 757b36d..bb55826 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module github.com/tessellated-io/router go 1.20 - -require github.com/tessellated-io/pickaxe v1.0.1 // indirect diff --git a/go.sum b/go.sum index 0cd897c..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -github.com/tessellated-io/pickaxe v1.0.1 h1:3jQwi8tn6V7k+oK+AUx26gj3RRMsqgEq6fHqCdJK6B0= -github.com/tessellated-io/pickaxe v1.0.1/go.mod h1:BUuDKLC0P9Y098K24k+cOcy4/6rCuiHX8T2vPQGHAQA= diff --git a/router/chain.go b/router/chain.go index dede924..f6a21a9 100644 --- a/router/chain.go +++ b/router/chain.go @@ -20,7 +20,7 @@ type chain struct { var _ Chain = (*chain)(nil) // Create a new Chain -func NewChain(chainName string, humanReadableName string, grpcEndpoint *string) (Chain, error) { +func NewChain(chainName, humanReadableName string, grpcEndpoint *string) (Chain, error) { return &chain{ chainName: chainName, humanReadableName: humanReadableName,