Skip to content

Commit

Permalink
Merge pull request #1590 from bstasyszyn/sidetree-core
Browse files Browse the repository at this point in the history
chore: Replace sidetree-core-go with sidetree-go and sidetree-svc-go
  • Loading branch information
bstasyszyn authored Sep 29, 2023
2 parents 18f4c07 + 5d4043c commit 1e0e7e6
Show file tree
Hide file tree
Showing 161 changed files with 863 additions and 884 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
matrix:
os: [ubuntu-latest]
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
id: go

- uses: actions/checkout@v2
Expand All @@ -41,10 +41,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
id: go

- uses: actions/checkout@v2
Expand All @@ -69,10 +69,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
id: go

- uses: actions/checkout@v2
Expand All @@ -95,10 +95,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
id: go

- uses: actions/checkout@v2
Expand All @@ -121,10 +121,10 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21

- uses: actions/checkout@v2

Expand All @@ -139,10 +139,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21

- uses: actions/checkout@v2
with: { fetch-depth: 0 }
Expand Down Expand Up @@ -189,8 +189,8 @@ jobs:
file: ./images/orb/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
ALPINE_VER=3.15
GO_VER=1.19
ALPINE_VER=3.18
GO_VER=1.21
GO_LDFLAGS=-X 'github.com/trustbloc/orb/pkg/nodeinfo.OrbVersion=${{ env.IMAGE_TAG }}' -X 'github.com/trustbloc/orb/pkg/httpserver.BuildVersion=${{ env.IMAGE_TAG }}'
push: true
tags: |
Expand All @@ -204,8 +204,8 @@ jobs:
file: ./images/orb-driver/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
ALPINE_VER=3.15
GO_VER=1.19
ALPINE_VER=3.18
GO_VER=1.21
push: true
tags: |
${{ env.ORB_DRIVER_IMAGE_PREFIX }}:${{ env.IMAGE_TAG }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Go 1.19
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
id: go

- name: Set ENV vars
Expand Down Expand Up @@ -49,8 +49,8 @@ jobs:
file: ./images/orb/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
ALPINE_VER=3.15
GO_VER=1.19
ALPINE_VER=3.18
GO_VER=1.21
GO_LDFLAGS=-X 'github.com/trustbloc/orb/pkg/nodeinfo.OrbVersion=${{ env.IMAGE_TAG }}' -X 'github.com/trustbloc/orb/pkg/httpserver.BuildVersion=${{ env.IMAGE_TAG }}'
push: true
tags: |
Expand All @@ -64,8 +64,8 @@ jobs:
file: ./images/orb-driver/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
ALPINE_VER=3.15
GO_VER=1.19
ALPINE_VER=3.18
GO_VER=1.21
push: true
tags: |
${{ env.ORB_DRIVER_IMAGE_PREFIX }}:${{ env.IMAGE_TAG }}
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ run:
tests: true
build-tags: [""]
skip-dirs: [""]
go: '1.19'
go: '1.21'

output:
format: colored-line-number
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
CONTAINER_IDS = $(shell type docker >/dev/null 2>&1 && docker ps -a -q)
DEV_IMAGES = $(shell type docker >/dev/null 2>&1 && docker images dev-* -q)
ARCH = $(shell go env GOARCH)
GO_VER = 1.19
GO_VER = 1.21
GOBIN_PATH = $(abspath .)/build/bin
SWAGGER_VERSION ?= v0.27.0
SWAGGER_DIR = "./test/bdd/fixtures/specs"
Expand All @@ -37,7 +37,7 @@ ORB_DRIVER_REST_PATH=cmd/orb-driver
# Tool commands (overridable)
DOCKER_CMD ?= docker
GO_CMD ?= go
ALPINE_VER ?= 3.15
ALPINE_VER ?= 3.18
GO_TAGS ?=

export GO111MODULE=on
Expand Down
10 changes: 5 additions & 5 deletions cmd/orb-cli/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"github.com/hyperledger/aries-framework-go/pkg/kms"
"github.com/spf13/cobra"
"github.com/trustbloc/logutil-go/pkg/log"
"github.com/trustbloc/sidetree-core-go/pkg/jws"
"github.com/trustbloc/sidetree-core-go/pkg/util/ecsigner"
"github.com/trustbloc/sidetree-core-go/pkg/util/edsigner"
"github.com/trustbloc/sidetree-core-go/pkg/util/pubkey"
"github.com/trustbloc/sidetree-core-go/pkg/versions/1_0/client"
"github.com/trustbloc/sidetree-go/pkg/jws"
"github.com/trustbloc/sidetree-go/pkg/util/ecsigner"
"github.com/trustbloc/sidetree-go/pkg/util/edsigner"
"github.com/trustbloc/sidetree-go/pkg/util/pubkey"
"github.com/trustbloc/sidetree-go/pkg/versions/1_0/client"

"github.com/trustbloc/orb/internal/pkg/cmdutil"
"github.com/trustbloc/orb/internal/pkg/tlsutil"
Expand Down
38 changes: 29 additions & 9 deletions cmd/orb-cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,44 @@

module github.com/trustbloc/orb/cmd/orb-cli

go 1.19
go 1.21

toolchain go1.21.0

require (
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
github.com/google/uuid v1.3.0
github.com/hyperledger/aries-framework-go v0.1.9-0.20221201073943-47b08f16c301
github.com/hyperledger/aries-framework-go v0.3.3-0.20230901120639-e17eddd3ad3e
github.com/hyperledger/aries-framework-go-ext/component/vdr/orb v1.0.0-rc5.0.20230612123444-d285f3c85595
github.com/hyperledger/aries-framework-go-ext/component/vdr/sidetree v1.0.0-rc4.0.20230612123444-d285f3c85595
github.com/hyperledger/aries-framework-go/component/storageutil v0.0.0-20220610133818-119077b0ec85
github.com/hyperledger/aries-framework-go/component/storageutil v0.0.0-20230901120639-e17eddd3ad3e
github.com/ipfs/go-ipfs-api v0.2.0
github.com/ipfs/go-ipfs-files v0.0.8
github.com/libp2p/go-libp2p-core v0.8.0
github.com/piprate/json-gold v0.4.2
github.com/spf13/cobra v1.3.0
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/spf13/cobra v1.5.0
github.com/stretchr/testify v1.8.2
github.com/trustbloc/logutil-go v1.0.0-rc1
github.com/trustbloc/orb v1.0.0-rc7
github.com/trustbloc/sidetree-core-go v1.0.0
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd
github.com/trustbloc/vct v1.0.0
)

require (
github.com/IBM/mathlib v0.0.3-0.20230605104224-932ab92f2ce0 // indirect
github.com/VictoriaMetrics/fastcache v1.5.7 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bluele/gcache v0.0.2 // indirect
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/btcsuite/btcd v0.22.3 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/consensys/bavard v0.1.13 // indirect
github.com/consensys/gnark-crypto v0.9.1 // indirect
github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/evanphx/json-patch v4.1.0+incompatible // indirect
github.com/fxamacker/cbor/v2 v2.3.0 // indirect
github.com/go-jose/go-jose/v3 v3.0.1-0.20221117193127-916db76e8214 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
Expand All @@ -46,8 +52,13 @@ require (
github.com/google/trillian v1.3.14-0.20210520152752-ceda464a95a3 // 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/spi v0.0.0-20221025204933-b807371b6f1e // indirect
github.com/hyperledger/aries-framework-go/test/component v0.0.0-20220516154446-0ba34929e05b // indirect
github.com/hyperledger/aries-framework-go/component/kmscrypto v0.0.0-20230901120639-e17eddd3ad3e // indirect
github.com/hyperledger/aries-framework-go/component/log v0.0.0-20230901120639-e17eddd3ad3e // indirect
github.com/hyperledger/aries-framework-go/component/models v0.0.0-20230901120639-e17eddd3ad3e // indirect
github.com/hyperledger/aries-framework-go/component/vdr v0.0.0-20230622171716-43af8054a539 // indirect
github.com/hyperledger/aries-framework-go/spi v0.0.0-20230901120639-e17eddd3ad3e // indirect
github.com/hyperledger/aries-framework-go/test/component v0.0.0-20230901120639-e17eddd3ad3e // indirect
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
github.com/hyperledger/ursa-wrapper-go v0.3.1 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/ipfs/go-cid v0.0.7 // indirect
Expand All @@ -62,6 +73,7 @@ require (
github.com/minio/sha256-simd v0.1.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.1.0 // indirect
github.com/multiformats/go-base36 v0.1.0 // indirect
Expand All @@ -83,6 +95,12 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 // indirect
github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 // indirect
github.com/tidwall/gjson v1.14.3 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/sjson v1.1.4 // indirect
github.com/trustbloc/sidetree-core-go v1.0.0-rc5.0.20230609191801-793cbea60692 // indirect
github.com/trustbloc/sidetree-svc-go v0.0.0-20230928215925-11c8459cb32d // indirect
github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
Expand All @@ -100,6 +118,7 @@ require (
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.23.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect
golang.org/x/sys v0.5.0 // indirect
Expand All @@ -108,6 +127,7 @@ require (
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

replace github.com/trustbloc/orb => ../..
Loading

0 comments on commit 1e0e7e6

Please sign in to comment.