Skip to content

Commit ed8594f

Browse files
authored
Update to Cadence v1.7.0 (#2050)
1 parent 7330e68 commit ed8594f

File tree

11 files changed

+161
-164
lines changed

11 files changed

+161
-164
lines changed

.github/workflows/build-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
GO_VERSION: "1.24"
8+
GO_VERSION: "1.25"
99

1010
jobs:
1111
release:
@@ -32,4 +32,4 @@ jobs:
3232
echo 'VERSION=${{ github.event.release.tag_name }}' >> .release-env
3333
echo 'GITHUB_TOKEN=${{ secrets.FLOW_CLI_RELEASE }}' >> .release-env
3434
- name: Build and Release
35-
run: make release
35+
run: make release

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
push:
77
branches:
88
- master
9-
- 'feature/**'
9+
- "feature/**"
1010
pull_request:
1111
branches:
1212
- master
13-
- 'feature/**'
13+
- "feature/**"
1414

1515
# We need to set this explicitly to make sure the CI works on Windows
1616
# Default shell does not terminate on error in GitHub Actions
@@ -20,7 +20,7 @@ defaults:
2020
shell: bash
2121

2222
env:
23-
GO_VERSION: "1.24"
23+
GO_VERSION: "1.25"
2424

2525
jobs:
2626
test:
@@ -55,9 +55,8 @@ jobs:
5555
go-version: ${{ env.GO_VERSION }}
5656
- name: generate
5757
run: make generate
58-
- uses: golangci/golangci-lint-action@v6.5.0
58+
- uses: golangci/golangci-lint-action@v8
5959
with:
60-
version: v1.64.8
60+
version: v2.4.0
6161
only-new-issues: true
62-
skip-pkg-cache: true
6362
args: --timeout=3m

.golangci.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
4-
- govet
55
- errcheck
6+
- govet
67
- ineffassign
7-
- typecheck
88
- misspell
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
paths:
17+
- third_party$
18+
- builtin$
19+
- examples$
20+
formatters:
21+
enable:
922
- goimports
10-
linters-settings:
11-
goimports:
12-
# put imports beginning with prefix after 3rd-party package
13-
local-prefixes: github.com/onflow/flow-cli
23+
settings:
24+
goimports:
25+
local-prefixes:
26+
- github.com/onflow/flow-cli
27+
exclusions:
28+
generated: lax
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$

.goreleaser.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
before:
23
hooks:
34
- make generate
@@ -36,18 +37,18 @@ builds:
3637

3738
archives:
3839
- id: golang-cross
39-
builds:
40+
ids:
4041
- flow-cli
4142
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
42-
format: tar.gz
43+
formats:
44+
- tar.gz
4345
format_overrides:
4446
- goos: windows
45-
format: zip
47+
formats:
48+
- zip
4649
wrap_in_directory: false
47-
snapshot:
48-
name_template: "{{ .Tag }}"
4950
changelog:
50-
skip: true
51+
disable: true
5152
checksum:
5253
name_template: "checksums.txt"
5354
release:

Makefile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuration for goreleaser
22
PACKAGE_NAME := github.com/onflow/flow-cli
3-
GOLANG_CROSS_VERSION ?= v1.22.0
3+
GOLANG_CROSS_VERSION ?= v1.25.0
44

55
# The tag of the current commit, otherwise empty
66
VERSION := $(shell git describe --tags --abbrev=0 --exact-match 2>/dev/null)
@@ -26,10 +26,8 @@ binary: $(BINARY)
2626
install-tools:
2727
cd '${GOPATH}'; \
2828
mkdir -p '${GOPATH}'; \
29-
GO111MODULE=on go install github.com/axw/gocov/gocov@latest; \
30-
GO111MODULE=on go install github.com/matm/gocov-html/cmd/gocov-html@latest; \
3129
GO111MODULE=on go install github.com/sanderhahn/gozip/cmd/gozip@latest; \
32-
GO111MODULE=on go install github.com/vektra/mockery/v2@v2.43.2;
30+
GO111MODULE=on go install github.com/vektra/mockery/v2@v2.53.5;
3331

3432
.PHONY: test
3533
test:
@@ -42,12 +40,12 @@ test-e2e-emulator:
4240
.PHONY: coverage
4341
coverage:
4442
ifeq ($(COVER), true)
45-
# file has to be called index.html
46-
gocov convert $(COVER_PROFILE) > cover.json
47-
./cover-summary.sh
48-
gocov-html cover.json > index.html
49-
# coverage.zip will automatically be picked up by teamcity
50-
gozip -c coverage.zip index.html
43+
# Generate HTML coverage report using built-in Go tool.
44+
go tool cover -html=$(COVER_PROFILE) -o index.html
45+
# Generate textual summary.
46+
go tool cover -func=$(COVER_PROFILE) | tee cover-summary.txt
47+
# Optionally zip the HTML (if gozip installed) for CI systems expecting an artifact.
48+
if [ -x "$(shell command -v gozip 2>/dev/null)" ]; then gozip -c coverage.zip index.html || true; fi
5149
endif
5250

5351
.PHONY: ci

go.mod

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
module github.com/onflow/flow-cli
22

3-
go 1.24
4-
5-
toolchain go1.24.0
3+
go 1.25.0
64

75
require (
86
github.com/charmbracelet/bubbles v0.21.0
97
github.com/charmbracelet/bubbletea v1.3.7
108
github.com/charmbracelet/lipgloss v1.1.0
119
github.com/coreos/go-semver v0.3.1
1210
github.com/dukex/mixpanel v1.0.1
13-
github.com/ethereum/go-ethereum v1.16.2
11+
github.com/ethereum/go-ethereum v1.16.3
1412
github.com/getsentry/sentry-go v0.35.1
1513
github.com/gosuri/uilive v0.0.4
1614
github.com/logrusorgru/aurora/v4 v4.0.0
17-
github.com/onflow/cadence v1.7.0-preview.1
18-
github.com/onflow/cadence-tools/languageserver v1.5.0-preview.1
19-
github.com/onflow/cadence-tools/lint v1.4.0-preview.1
20-
github.com/onflow/cadence-tools/test v1.5.0-preview.1
15+
github.com/onflow/cadence v1.7.0
16+
github.com/onflow/cadence-tools/languageserver v1.5.0
17+
github.com/onflow/cadence-tools/lint v1.4.0
18+
github.com/onflow/cadence-tools/test v1.5.0
2119
github.com/onflow/fcl-dev-wallet v0.8.0
22-
github.com/onflow/flixkit-go/v2 v2.5.0-preview.1
23-
github.com/onflow/flow-core-contracts/lib/go/templates v1.7.2-0.20250807122906-29940d8821f0
24-
github.com/onflow/flow-emulator v1.7.0-preview.2
25-
github.com/onflow/flow-evm-gateway v1.3.0-preview.1
26-
github.com/onflow/flow-go v0.42.3-util-fix.0.20250819165158-ea886bab7c19
27-
github.com/onflow/flow-go-sdk v1.7.0
28-
github.com/onflow/flowkit/v2 v2.5.0-preview.1
20+
github.com/onflow/flixkit-go/v2 v2.5.0
21+
github.com/onflow/flow-core-contracts/lib/go/templates v1.7.2-0.20250905214304-819c6e946442
22+
github.com/onflow/flow-emulator v1.7.0
23+
github.com/onflow/flow-evm-gateway v1.3.0
24+
github.com/onflow/flow-go v0.43.0-dev-pebble.1.0.20250910132853-12699a150fd9
25+
github.com/onflow/flow-go-sdk v1.8.1
26+
github.com/onflow/flowkit/v2 v2.5.0
2927
github.com/onflowser/flowser/v3 v3.2.1-0.20240131200229-7d4d22715f48
3028
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
3129
github.com/pkg/errors v0.9.1
@@ -44,9 +42,9 @@ require (
4442

4543
require (
4644
cloud.google.com/go v0.120.0 // indirect
47-
cloud.google.com/go/auth v0.16.2 // indirect
45+
cloud.google.com/go/auth v0.16.4 // indirect
4846
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
49-
cloud.google.com/go/compute/metadata v0.7.0 // indirect
47+
cloud.google.com/go/compute/metadata v0.8.0 // indirect
5048
cloud.google.com/go/iam v1.5.2 // indirect
5149
cloud.google.com/go/kms v1.22.0 // indirect
5250
cloud.google.com/go/longrunning v0.6.7 // indirect
@@ -61,7 +59,7 @@ require (
6159
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
6260
github.com/benbjohnson/clock v1.3.5 // indirect
6361
github.com/beorn7/perks v1.0.1 // indirect
64-
github.com/bits-and-blooms/bitset v1.22.0 // indirect
62+
github.com/bits-and-blooms/bitset v1.24.0 // indirect
6563
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
6664
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.3 // indirect
6765
github.com/c-bata/go-prompt v0.2.6 // indirect
@@ -131,7 +129,7 @@ require (
131129
github.com/google/s2a-go v0.1.9 // indirect
132130
github.com/google/uuid v1.6.0 // indirect
133131
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
134-
github.com/googleapis/gax-go/v2 v2.14.2 // indirect
132+
github.com/googleapis/gax-go/v2 v2.15.0 // indirect
135133
github.com/gorilla/mux v1.8.1 // indirect
136134
github.com/gorilla/websocket v1.5.3 // indirect
137135
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect
@@ -162,7 +160,7 @@ require (
162160
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
163161
github.com/joho/godotenv v1.4.0 // indirect
164162
github.com/jordanschalm/lockctx v0.0.0-20250412215529-226f85c10956 // indirect
165-
github.com/k0kubun/pp v3.0.1+incompatible // indirect
163+
github.com/k0kubun/pp/v3 v3.5.0 // indirect
166164
github.com/kevinburke/go-bindata v3.24.0+incompatible // indirect
167165
github.com/klauspost/compress v1.17.11 // indirect
168166
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
@@ -175,7 +173,7 @@ require (
175173
github.com/lmars/go-slip10 v0.0.0-20190606092855-400ba44fee12 // indirect
176174
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
177175
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
178-
github.com/mattn/go-colorable v0.1.13 // indirect
176+
github.com/mattn/go-colorable v0.1.14 // indirect
179177
github.com/mattn/go-isatty v0.0.20 // indirect
180178
github.com/mattn/go-localereader v0.0.1 // indirect
181179
github.com/mattn/go-runewidth v0.0.16 // indirect
@@ -198,15 +196,16 @@ require (
198196
github.com/multiformats/go-varint v0.0.7 // indirect
199197
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
200198
github.com/olekukonko/tablewriter v0.0.5 // indirect
201-
github.com/onflow/atree v0.10.0 // indirect
199+
github.com/onflow/atree v0.10.1 // indirect
202200
github.com/onflow/crypto v0.25.3 // indirect
203-
github.com/onflow/flow-core-contracts/lib/go/contracts v1.7.4-0.20250807122906-29940d8821f0 // indirect
201+
github.com/onflow/fixed-point v0.1.1 // indirect
202+
github.com/onflow/flow-core-contracts/lib/go/contracts v1.7.4-0.20250905214304-819c6e946442 // indirect
204203
github.com/onflow/flow-evm-bridge v0.1.0 // indirect
205204
github.com/onflow/flow-ft/lib/go/contracts v1.0.1 // indirect
206205
github.com/onflow/flow-ft/lib/go/templates v1.0.1 // indirect
207206
github.com/onflow/flow-nft/lib/go/contracts v1.2.4 // indirect
208207
github.com/onflow/flow-nft/lib/go/templates v1.2.1 // indirect
209-
github.com/onflow/flow/protobuf/go/flow v0.4.11 // indirect
208+
github.com/onflow/flow/protobuf/go/flow v0.4.12 // indirect
210209
github.com/onflow/go-ethereum v1.15.10 // indirect
211210
github.com/onflow/nft-storefront/lib/go/contracts v1.0.0 // indirect
212211
github.com/onflow/sdks v0.6.0-preview.1 // indirect
@@ -234,7 +233,7 @@ require (
234233
github.com/sagikazarmark/locafero v0.7.0 // indirect
235234
github.com/samber/lo v1.39.0 // indirect
236235
github.com/samber/slog-zerolog v1.0.0 // indirect
237-
github.com/schollz/progressbar/v3 v3.13.1 // indirect
236+
github.com/schollz/progressbar/v3 v3.18.0 // indirect
238237
github.com/sethvargo/go-limiter v1.0.0 // indirect
239238
github.com/sethvargo/go-retry v0.2.3 // indirect
240239
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
@@ -276,21 +275,21 @@ require (
276275
go.uber.org/multierr v1.11.0 // indirect
277276
go.uber.org/ratelimit v0.3.1 // indirect
278277
go.uber.org/zap v1.27.0 // indirect
279-
golang.org/x/crypto v0.39.0 // indirect
280-
golang.org/x/net v0.41.0 // indirect
278+
golang.org/x/crypto v0.41.0 // indirect
279+
golang.org/x/net v0.43.0 // indirect
281280
golang.org/x/oauth2 v0.30.0 // indirect
282-
golang.org/x/sync v0.15.0 // indirect
281+
golang.org/x/sync v0.16.0 // indirect
283282
golang.org/x/sys v0.35.0 // indirect
284-
golang.org/x/text v0.26.0 // indirect
283+
golang.org/x/text v0.28.0 // indirect
285284
golang.org/x/time v0.12.0 // indirect
286285
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
287286
gonum.org/v1/gonum v0.16.0 // indirect
288-
google.golang.org/api v0.241.0 // indirect
287+
google.golang.org/api v0.247.0 // indirect
289288
google.golang.org/appengine v1.6.8 // indirect
290-
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 // indirect
289+
google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect
291290
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
292-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
293-
google.golang.org/protobuf v1.36.6 // indirect
291+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect
292+
google.golang.org/protobuf v1.36.7 // indirect
294293
gopkg.in/yaml.v2 v2.4.0 // indirect
295294
gopkg.in/yaml.v3 v3.0.1 // indirect
296295
lukechampine.com/blake3 v1.4.1 // indirect

0 commit comments

Comments
 (0)