Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
chore: updated to go 1.19 and latest afgo
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Biriukov <anton.biriukov@avast.com>
  • Loading branch information
birtony committed Nov 29, 2022
1 parent 4f294b2 commit c301f61
Show file tree
Hide file tree
Showing 101 changed files with 705 additions and 4,899 deletions.
13 changes: 10 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
# Copyright Avast Software. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -10,7 +11,7 @@ run:
issues-exit-code: 1
tests: true
build-tags: [""]
skip-dirs: [""]
skip-dirs: [""]

output:
format: colored-line-number
Expand Down Expand Up @@ -78,7 +79,7 @@ linters:
- goerr113 # not good: https://github.com/Djarvur/go-err113/issues/10
- paralleltest
- exhaustivestruct
# - tparallel
# - tparallel
- interfacer # deprecated by the author https://github.com/mvdan/interfacer#interfacer
- scopelint # deprecated by the author https://github.com/kyoh86/scopelint#obsoleted
- maligned # deprecated by the author https://github.com/mdempsky/maligned
Expand All @@ -87,6 +88,10 @@ linters:
- wrapcheck # TODO enable
- forbidigo # TODO enable
- gci # giving spurious errors for imports of syscall/js
- exhaustruct # Results in unneeded struct member declarations
- ireturn # Required by aries-framework-go, a library we use
- varnamelen # This linter prevents us from using "i" as an index variable or "vc" for a variable name for a Verifiable Credential, both of which are very common in our code
- tagliatelle # JSON tags using camel-case required by the specs we implement

issues:
exclude-use-default: false
Expand All @@ -95,9 +100,11 @@ issues:
linters:
- dupl
- funlen
- nonamedreturns
- maintidx

exclude:
# Allow package logger variables (for now)
- \`logger\` is a global variable
- logger is a global variable
- Line contains TODO/BUG/FIXME
- Line contains TODO/BUG/FIXME
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Copyright SecureKey Technologies Inc.
# Copyright Avast Software. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0


GOBIN_PATH = $(abspath .)/build/bin
ARIES_AGENT_REST_PATH=cmd/agent-rest
ARIES_AGENT_MOBILE_PATH=cmd/agent-mobile
ARIES_FRAMEWORK_COMMIT=e1f4b94b6f8b9051e556875e65e95b287fe0c198
ARIES_FRAMEWORK_COMMIT=46b78a522903753257572359b2adb7a747da650b
PROJECT_ROOT = github.com/trustbloc/agent-sdk
OPENAPI_SPEC_PATH=build/rest/openapi/spec
OPENAPI_DOCKER_IMG=quay.io/goswagger/swagger
Expand All @@ -17,8 +18,8 @@ DOCKER_OUTPUT_NS ?= ghcr.io
REPO_IMAGE_NAME ?= trustbloc
DOCKER_AGENT_NAME ?= agent-sdk-server

ALPINE_VER ?= 3.15
GO_VER ?= 1.17
ALPINE_VER ?= 3.16
GO_VER ?= 1.19

.PHONY: all
all: clean checks unit-test unit-test-wasm agent-rest agent-server-docker bdd-test
Expand Down
30 changes: 15 additions & 15 deletions cmd/agent-js-worker/go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Copyright SecureKey Technologies Inc. All Rights Reserved.
// Copyright Avast Software. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0

module github.com/trustbloc/agent-sdk/cmd/agent-js-worker

go 1.17
go 1.19

require (
github.com/hyperledger/aries-framework-go v0.1.9-0.20220920215334-e1f4b94b6f8b
github.com/mitchellh/mapstructure v1.4.3
github.com/hyperledger/aries-framework-go v0.1.9-0.20221128230417-46b78a522903
github.com/mitchellh/mapstructure v1.5.0
github.com/trustbloc/agent-sdk v0.0.0-00010101000000-000000000000
github.com/trustbloc/edge-core v0.1.8
)
Expand All @@ -34,17 +35,17 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/certificate-transparency-go v1.1.2-0.20210512142713-bed466244fa6 // indirect
github.com/google/tink/go v1.6.1 // indirect
github.com/google/tink/go v1.7.0 // indirect
github.com/google/trillian v1.3.14-0.20210520152752-ceda464a95a3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/hyperledger/aries-framework-go-ext/component/storage/mongodb v0.0.0-20220615170242-cda5092b4faf // indirect
github.com/hyperledger/aries-framework-go-ext/component/vdr/orb v1.0.0-rc2.0.20220811162145-47649b185a56 // indirect
github.com/hyperledger/aries-framework-go-ext/component/vdr/sidetree v1.0.0-rc2.0.20220729203359-da1de2fa21ce // indirect
github.com/hyperledger/aries-framework-go/component/storage/edv v0.0.0-20220614152730-3d817acfa48b // indirect
github.com/hyperledger/aries-framework-go/component/storage/edv v0.0.0-20221025204933-b807371b6f1e // indirect
github.com/hyperledger/aries-framework-go/component/storage/indexeddb v0.0.0-20220614152730-3d817acfa48b // indirect
github.com/hyperledger/aries-framework-go/component/storageutil v0.0.0-20220614152730-3d817acfa48b // indirect
github.com/hyperledger/aries-framework-go/spi v0.0.0-20220617141911-82112d172a78 // indirect
github.com/hyperledger/aries-framework-go/spi v0.0.0-20221025204933-b807371b6f1e // indirect
github.com/hyperledger/aries-framework-go/test/component v0.0.0-20220614152730-3d817acfa48b // indirect
github.com/hyperledger/ursa-wrapper-go v0.3.1 // indirect
github.com/ipfs/go-cid v0.0.7 // indirect
Expand All @@ -62,9 +63,9 @@ require (
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
github.com/minio/sha256-simd v0.1.1 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.0.4 // indirect
github.com/multiformats/go-base32 v0.1.0 // indirect
github.com/multiformats/go-base36 v0.1.0 // indirect
github.com/multiformats/go-multibase v0.0.3 // indirect
github.com/multiformats/go-multibase v0.1.1 // indirect
github.com/multiformats/go-multihash v0.0.14 // indirect
github.com/multiformats/go-varint v0.0.6 // indirect
github.com/opentracing/opentracing-go v1.1.0 // indirect
Expand All @@ -80,7 +81,7 @@ require (
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 // indirect
github.com/stretchr/testify v1.7.5 // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 // indirect
github.com/tidwall/gjson v1.14.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
Expand All @@ -101,15 +102,14 @@ require (
github.com/yaronf/httpsign v0.1.13 // indirect
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
go.mongodb.org/mongo-driver v1.9.1 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf // indirect
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
nhooyr.io/websocket v1.8.3 // indirect
)
Expand Down
Loading

0 comments on commit c301f61

Please sign in to comment.