Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
45 changes: 0 additions & 45 deletions .codeclimate.yml

This file was deleted.

1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ codecov:

ignore:
- "_.*"
- "vendor"
- "scripts"
- "contracts"
- "Makefile"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/import-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:

- name: Run messaging import check
run: |
echo "Finding all Go files outside the messaging and vendor directories..."
files=$(find . -type f -name '*.go' ! -path './messaging/*' ! -path './vendor/*')
echo "Finding all Go files outside the messaging directory..."
files=$(find . -type f -name '*.go' ! -path './messaging/*')

echo "Checking for invalid imports of github.com/status-im/status-go/messaging/*..."
for file in $files; do
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Go Lint
on:
pull_request:
branches:
- develop
- release/**

permissions:
contents: read
Expand All @@ -19,6 +16,9 @@ jobs:
with:
go-version: 1.24

- name: Get dependencies
run: go mod download

- name: Cache Go dependencies
uses: actions/cache@v4
id: cache-go-deps
Expand Down Expand Up @@ -64,6 +64,9 @@ jobs:
run: |
make lint-panics

- name: go mod tidy
run: go mod tidy && git diff --exit-code

migration-check:
name: Check SQL migrations order
runs-on: ubuntu-latest
Expand Down
18 changes: 0 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/**/.DS_Store
.ethtest
*/**/*tx_database*
vendor/github.com/ethereum/go-ethereum/vendor
node_modules/
tags
build/
Expand All @@ -46,7 +45,6 @@ profile.cov

# tests
.ethereumtest/
/vendor/**/*_test.go
*.test

#
Expand All @@ -68,9 +66,6 @@ Session.vim
/cmd/*/.ethereum/
*.iml

# do not vendor nested vendor/ dirs
vendor/**/vendor

# nodejs package

package.json
Expand All @@ -84,14 +79,6 @@ test.log
test_*.log
**/exit_code_*.txt

# Waku libs
vendor/github.com/waku-org/go-zerokit-rln-x86_64/
vendor/github.com/waku-org/go-zerokit-rln-apple/
vendor/github.com/waku-org/go-zerokit-rln-arm/

# waku-go-bindings third_party directory
vendor/**/waku-go-bindings/third_party/

# status-cli logs
alice.log
bob.log
Expand All @@ -114,7 +101,6 @@ report/results.xml

# generated files
mock/
!vendor/**/mock/
mock.go
*_mock_test.go
*.pb.go
Expand All @@ -128,9 +114,5 @@ pkg/sentry/SENTRY_CONTEXT_NAME
pkg/sentry/SENTRY_CONTEXT_VERSION
pkg/sentry/SENTRY_PRODUCTION

# Don't ignore generated files in the vendor/ directory
!vendor/**/*.pb.go
!vendor/**/migrations.go

go.work
go.work.sum
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: "2"
run:
modules-download-mode: vendor
issues-exit-code: 1
tests: true
linters:
Expand Down Expand Up @@ -70,4 +69,3 @@ formatters:
generated: strict
paths:
- static
- vendor
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN mkdir -p /go/src/github.com/status-im/status-go
WORKDIR /go/src/github.com/status-im/status-go

ADD go.mod go.sum ./
RUN go mod download
RUN go install google.golang.org/protobuf/cmd/[email protected]

ADD . .
Expand Down
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ all: $(GO_CMD_NAMES)
.PHONY: $(GO_CMD_NAMES) $(GO_CMD_PATHS) $(GO_CMD_BUILDS)
$(GO_CMD_BUILDS): generate $(LIBWAKU)
$(GO_CMD_BUILDS): ##@build Build any Go project from cmd folder
go build -mod=vendor -v \
go build -v \
-tags '$(BUILD_TAGS)' $(BUILD_FLAGS) \
-o ./$@ ./cmd/$(notdir $@)
@echo "Compilation done."
Expand All @@ -191,7 +191,7 @@ status-backend: build/bin/status-backend
run-status-backend: PORT ?= 0
run-status-backend: generate
run-status-backend: ##@run Start status-backend server listening to localhost:PORT
go run ./cmd/status-backend --address localhost:${PORT}
go run -mod=mod ./cmd/status-backend --address localhost:${PORT}

push-notification-server: ##@build Build push-notification-server
push-notification-server: build/bin/push-notification-server
Expand All @@ -210,7 +210,7 @@ status-go-deps:
statusgo-c-bindings:
## cmd/library/README.md explains the magic incantation behind this
mkdir -p build/bin/statusgo-lib
go run cmd/library/*.go > build/bin/statusgo-lib/main.go
go run -mod=mod cmd/library/*.go > build/bin/statusgo-lib/main.go

statusgo-library: generate
statusgo-library: statusgo-c-bindings $(LIBWAKU) ##@cross-compile Build status-go as static library for current platform
Expand Down Expand Up @@ -298,9 +298,9 @@ generate: ##@ Run generate for all given packages using go-generate-fast, fallb
generate-contracts:
go generate ./contracts
download-tokens:
go run ./services/wallet/token/token-lists/default-lists/downloader/main.go
go run -mod=mod ./services/wallet/token/token-lists/default-lists/downloader/main.go
analyze-token-stores:
go run ./services/wallet/token/token-lists/analyzer/main.go
go run -mod=mod ./services/wallet/token/token-lists/analyzer/main.go

prepare-release: clean-release
mkdir -p $(RELEASE_DIR)
Expand All @@ -319,11 +319,9 @@ lint-fix:
-and -not -name 'messenger_handlers.go' \
-and -not -name '*/mock/*' \
-and -not -name 'mock.go' \
-and -not -wholename '*/vendor/*' \
-exec goimports \
-local 'github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/status-im/markdown' \
-w {} \;
$(MAKE) vendor

docker-test: ##@tests Run tests in a docker container with golang.
docker run --privileged --rm -it -v "$(PWD):$(DOCKER_TEST_WORKDIR)" -w "$(DOCKER_TEST_WORKDIR)" $(DOCKER_TEST_IMAGE) go test ${ARGS}
Expand All @@ -350,7 +348,6 @@ test-unit-prep: export UNIT_TEST_REPORT_CODECOV ?= false
test-unit: test-unit-prep
test-unit: export UNIT_TEST_RERUN_FAILS ?= true
test-unit: export UNIT_TEST_PACKAGES ?= $(call sh, go list ./... | \
grep -v /vendor | \
grep -v /t/e2e | \
grep -v /t/benchmarks | \
grep -v /transactions/fake | \
Expand Down Expand Up @@ -379,7 +376,7 @@ benchmark:

lint-panics: export GOFLAGS ?= -tags='$(BUILD_TAGS)'
lint-panics: generate
go run ./cmd/lint-panics -root="$(PWD)" -skip=./cmd -test=false ./...
go run -mod=mod ./cmd/lint-panics -root="$(PWD)" -skip=./cmd -test=false ./...

lint: generate lint-panics
golangci-lint --build-tags '$(BUILD_TAGS)' run ./...
Expand All @@ -396,12 +393,6 @@ deep-clean: clean git-clean
tidy:
go mod tidy

vendor: generate
go mod tidy
go mod vendor
go tool modvendor -copy="**/*.c **/*.h" -v
.PHONY: vendor

migration: DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql
migration:
touch $(DEFAULT_MIGRATION_PATH)/$$(date '+%s')_$(D).up.sql
Expand Down
8 changes: 0 additions & 8 deletions _assets/ci/Jenkinsfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ pipeline {
} }
}

stage('Vendor Check') {
steps { script {
nix.develop('make vendor', pure: false)
/* fail build if vendoring hasn't been done */
nix.develop('git diff --exit-code --no-color --stat vendor/')
} }
}

stage('Unit Tests') {
environment {
TEST_POSTGRES_PORT = "${env.DB_PORT}"
Expand Down
3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/status-im/status-go
go 1.24.0

tool (
github.com/goware/modvendor
github.com/kevinburke/go-bindata/v4/go-bindata
github.com/wadey/gocovmerge
go.uber.org/mock/mockgen
Expand Down Expand Up @@ -176,7 +175,6 @@ require (
github.com/google/gopacket v1.1.19 // indirect
github.com/google/pprof v0.0.0-20250202011525-fc3143867406 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/goware/modvendor v0.5.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-bexpr v0.1.10 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand Down Expand Up @@ -209,7 +207,6 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-zglob v0.0.2-0.20191112051448-a8912a37f9e7 // indirect
github.com/miekg/dns v1.1.63 // indirect
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,6 @@ github.com/gosuri/uilive v0.0.0-20170323041506-ac356e6e42cd/go.mod h1:qkLSc0A5EX
github.com/gosuri/uilive v0.0.3/go.mod h1:qkLSc0A5EXSP6B04TrN4oQoxqFI7A8XvoXSlJi8cwk8=
github.com/gosuri/uiprogress v0.0.0-20170224063937-d0567a9d84a1/go.mod h1:C1RTYn4Sc7iEyf6j8ft5dyoZ4212h8G1ol9QQluh5+0=
github.com/gosuri/uiprogress v0.0.1/go.mod h1:C1RTYn4Sc7iEyf6j8ft5dyoZ4212h8G1ol9QQluh5+0=
github.com/goware/modvendor v0.5.0 h1:3XXkmWdTccMzBswM5FTTXvWEtCV7DP7VRkIACRCGaqU=
github.com/goware/modvendor v0.5.0/go.mod h1:rtogeSlPLJT6MlypJyGp24o/vnHvF+ebCoTQrDX6oGY=
github.com/graph-gophers/graphql-go v0.0.0-20201113091052-beb923fada29/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc=
github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc=
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
Expand Down Expand Up @@ -1481,8 +1479,6 @@ github.com/mattn/go-sqlite3 v1.14.10/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4
github.com/mattn/go-sqlite3 v2.0.2+incompatible h1:qzw9c2GNT8UFrgWNDhCTqRqYUSmu/Dav/9Z58LGpk7U=
github.com/mattn/go-sqlite3 v2.0.2+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
github.com/mattn/go-zglob v0.0.2-0.20191112051448-a8912a37f9e7 h1:6HgbBMgs3hI9y1/MYG0r9j6daUubUskZNsEW4fkWR/k=
github.com/mattn/go-zglob v0.0.2-0.20191112051448-a8912a37f9e7/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY=
Expand Down
4 changes: 2 additions & 2 deletions nix/pkgs/status-go/library/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
pkgs,
self,
meta,
Expand All @@ -11,7 +11,7 @@ let
in pkgs.buildGoModule {
pname = "status-go";
src = builtins.path { path = ./../../../..; name = "status-go-library"; };
vendorHash = null;
vendorHash = "sha256-/MlwGc9Mb79HqYfziry/MxJFYPiekdAa6z/84OGi7I4=";

inherit meta version;

Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/Masterminds/squirrel/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions vendor/github.com/Masterminds/squirrel/.travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/Masterminds/squirrel/LICENSE

This file was deleted.

Loading
Loading