Skip to content

Commit

Permalink
Merge pull request #2593 from onflow/bastian/sync-stable-cadence-2
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Jun 22, 2023
2 parents 6fd0e01 + dda2353 commit 0e3b9d3
Show file tree
Hide file tree
Showing 92 changed files with 9,433 additions and 1,121 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: sh crypto_setup.sh

- name: Update Cadence
run: go get github.com/onflow/cadence@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}

- name: Tidy up
run: go mod tidy
Expand All @@ -65,7 +65,7 @@ jobs:
cache: true

- name: Update Cadence
run: go get github.com/onflow/cadence@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}

- name: Tidy up
run: go mod tidy
Expand Down
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ linters:
- goimports
- unconvert
- nilerr
- forbidigo
- bidichk
- asciicheck

issues:
exclude-rules:
Expand All @@ -38,6 +41,10 @@ linters-settings:
- exitAfterDefer
goimports:
local-prefixes: github.com/onflow/cadence
forbidigo:
forbid:
- '^maps.Keys.*(# has indeterminate order\.)?$'
- '^maps.Values.*(# has indeterminate order\.)?$'
custom:
maprange:
path: tools/maprange/maprange.so
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ tools/constructorcheck/constructorcheck.so:
tools/golangci-lint/golangci-lint:
(cd tools/golangci-lint && $(MAKE))

.PHONY: clean-linter
clean-linter:
rm -f tools/golangci-lint/golangci-lint \
tools/maprange/maprange.so \
tools/unkeyed/unkeyed.so \
tools/constructorcheck/constructorcheck.so

.PHONY: check-headers
check-headers:
@./check-headers.sh
Expand Down
264 changes: 0 additions & 264 deletions docs/flow-docs.json

This file was deleted.

Loading

0 comments on commit 0e3b9d3

Please sign in to comment.