Skip to content

Commit

Permalink
chore(weaver): change github org from hyperledger to hyperledger-cact…
Browse files Browse the repository at this point in the history
…i in go modules and urls

This PR is an intermediate step in getting the Weaver source code ready so that
packages can be published in a subsequent minor release.

Specifically, the import path references as well as publish namespaces for various
packages (Go, NPM, Maven, Cargo) and images (Docker) need to be switched from the
old hyperledger to the new hyperledger-cacti, reflecting the change of organization
of this repository.

Signed-off-by: Sandeep Nishad <sandeep.nishad1@ibm.com>
  • Loading branch information
sandeepnRES authored and petermetz committed Nov 21, 2024
1 parent 394323e commit 27a24dd
Show file tree
Hide file tree
Showing 193 changed files with 478 additions and 728 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_weaver-asset-exchange-corda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
echo "Using ${GITHUB_ACTOR} user."
echo "username=${GITHUB_ACTOR}" >> github.main.properties
echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger/cacti" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger-cacti/cacti" >> github.main.properties
./scripts/get-cordapps.sh || mv github.main.properties github.properties
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
echo "Using ${GITHUB_ACTOR} user."
echo "username=${GITHUB_ACTOR}" >> github.main.properties
echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger/cacti" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger-cacti/cacti" >> github.main.properties
./scripts/get-cordapps.sh || mv github.main.properties github.properties
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-transfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
echo "Using ${GITHUB_ACTOR} user."
echo "username=${GITHUB_ACTOR}" >> github.main.properties
echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger/cacti" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger-cacti/cacti" >> github.main.properties
./scripts/get-cordapps.sh || mv github.main.properties github.properties
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-data-sharing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
echo "Using ${GITHUB_ACTOR} user."
echo "username=${GITHUB_ACTOR}" >> github.main.properties
echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger/cacti" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger-cacti/cacti" >> github.main.properties
./scripts/get-cordapps.sh || mv github.main.properties github.properties
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
echo "Using ${GITHUB_ACTOR} user."
echo "username=${GITHUB_ACTOR}" >> github.main.properties
echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger/cacti" >> github.main.properties
echo "url=https://maven.pkg.github.com/hyperledger-cacti/cacti" >> github.main.properties
make build || mv github.main.properties github.properties
make clean
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/weaver_deploy_corda-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

name: Deploy Corda Packages

env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}

on:
push:
tags:
Expand Down Expand Up @@ -129,7 +132,7 @@ jobs:
working-directory: weaver/sdks/corda

publish-driver-image:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: always()
needs: [publish-protos-java-kt, publish-interop-app, publish-sdk]
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -157,15 +160,15 @@ jobs:
working-directory: weaver/core/drivers/corda-driver

- name: Check if package already exists
run: (make check-if-tag-exists && echo "CORDA_DRIVER_PUSH=true" >> $GITHUB_ENV) || echo "CORDA_DRIVER_PUSH=false" >> $GITHUB_ENV
run: (make check-if-tag-exists DOCKER_REGISTRY=${DOCKER_REGISTRY} && echo "CORDA_DRIVER_PUSH=true" >> $GITHUB_ENV) || echo "CORDA_DRIVER_PUSH=false" >> $GITHUB_ENV
working-directory: weaver/core/drivers/corda-driver

- name: Build and Push
if: ${{ env.CORDA_DRIVER_PUSH == 'true' }}
run: make push-image
run: make push-image DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/drivers/corda-driver

- name: Push latest tag
if: ${{ env.CORDA_DRIVER_PUSH == 'true' }}
run: make push-image-latest
run: make push-image-latest DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/drivers/corda-driver
23 changes: 13 additions & 10 deletions .github/workflows/weaver_deploy_go-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

name: Deploy Go Modules

env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}

on:
push:
tags:
Expand All @@ -14,7 +17,7 @@ on:

jobs:
publish-protos-go:
if: github.repository_owner == 'hyperledger'
if: github.repository_owner == 'hyperledger-cacti'
runs-on: ubuntu-22.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down Expand Up @@ -70,7 +73,7 @@ jobs:
run: sleep 300

publish-lib-utils:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: publish-protos-go
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -136,7 +139,7 @@ jobs:
run: sleep 300

publish-lib-asset-exchange:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: publish-protos-go
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -202,7 +205,7 @@ jobs:
run: sleep 300

publish-interface-asset-mgmt:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: [publish-protos-go]
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -268,7 +271,7 @@ jobs:
run: sleep 300

publish-interop-cc:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: [publish-protos-go, publish-lib-utils, publish-lib-asset-exchange]
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -334,7 +337,7 @@ jobs:
run: sleep 300

publish-go-sdk:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: [publish-protos-go]
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -400,7 +403,7 @@ jobs:
run: sleep 300

publish-weaver-fabric-cc-image:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: always()
needs: [publish-protos-go, publish-lib-utils, publish-lib-asset-exchange]
runs-on: ubuntu-22.04
steps:
Expand All @@ -415,15 +418,15 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Check if package already exists
run: (make check-if-tag-exists && echo "WEAVER_FABRIC_CC_PUSH=true" >> $GITHUB_ENV) || echo "WEAVER_FABRIC_CC_PUSH=false" >> $GITHUB_ENV
run: (make check-if-tag-exists DOCKER_REGISTRY=${DOCKER_REGISTRY} && echo "WEAVER_FABRIC_CC_PUSH=true" >> $GITHUB_ENV) || echo "WEAVER_FABRIC_CC_PUSH=false" >> $GITHUB_ENV
working-directory: weaver/core/network/fabric-interop-cc

- name: Build and Push
if: ${{ env.WEAVER_FABRIC_CC_PUSH == 'true' }}
run: make push-image
run: make push-image DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/network/fabric-interop-cc

- name: Push latest tag
if: ${{ env.WEAVER_FABRIC_CC_PUSH == 'true' }}
run: make push-image-latest
run: make push-image-latest DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/network/fabric-interop-cc
23 changes: 12 additions & 11 deletions .github/workflows/weaver_deploy_node-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Deploy Node JS Packages

env:
NODEJS_VERSION: v18.18.2
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}

on:
push:
Expand All @@ -17,7 +18,7 @@ on:

jobs:
publish-protos-js:
if: github.repository_owner == 'hyperledger'
if: github.repository_owner == 'hyperledger-cacti'
runs-on: ubuntu-22.04
permissions:
packages: write
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
working-directory: weaver/common/protos-js

publish-fabric-sdk:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: [publish-protos-js]
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
working-directory: weaver/sdks/fabric/interoperation-node-sdk

publish-besu-sdk:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: ${{ always() && github.repository_owner == 'hyperledger-cacti' }}
needs: [publish-protos-js]
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
working-directory: weaver/sdks/besu/node

publish-driver-image:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: always()
needs: [publish-protos-js, publish-fabric-sdk]
runs-on: ubuntu-22.04
permissions:
Expand All @@ -186,21 +187,21 @@ jobs:
working-directory: weaver/core/drivers/fabric-driver

- name: Check if package already exists
run: (make check-if-tag-exists && echo "FABRIC_DRIVER_PUSH=true" >> $GITHUB_ENV) || echo "FABRIC_DRIVER_PUSH=false" >> $GITHUB_ENV
run: (make check-if-tag-exists DOCKER_REGISTRY=${DOCKER_REGISTRY} && echo "FABRIC_DRIVER_PUSH=true" >> $GITHUB_ENV) || echo "FABRIC_DRIVER_PUSH=false" >> $GITHUB_ENV
working-directory: weaver/core/drivers/fabric-driver

- name: Build and Push
if: ${{ env.FABRIC_DRIVER_PUSH == 'true' }}
run: make push-image
run: make push-image DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/drivers/fabric-driver

- name: Push latest tag
if: ${{ env.FABRIC_DRIVER_PUSH == 'true' }}
run: make push-image-latest
run: make push-image-latest DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/drivers/fabric-driver

publish-iin-agent-image:
if: ${{ always() && github.repository_owner == 'hyperledger' }}
if: always()
needs: [publish-protos-js, publish-fabric-sdk]
runs-on: ubuntu-22.04
permissions:
Expand All @@ -226,15 +227,15 @@ jobs:
working-directory: weaver/core/identity-management/iin-agent

- name: Check if package already exists
run: (make check-if-tag-exists && echo "IINAGENT_PUSH=true" >> $GITHUB_ENV) || echo "IINAGENT_PUSH=false" >> $GITHUB_ENV
run: (make check-if-tag-exists DOCKER_REGISTRY=${DOCKER_REGISTRY} && echo "IINAGENT_PUSH=true" >> $GITHUB_ENV) || echo "IINAGENT_PUSH=false" >> $GITHUB_ENV
working-directory: weaver/core/identity-management/iin-agent

- name: Build and Push
if: ${{ env.IINAGENT_PUSH == 'true' }}
run: make push-image
run: make push-image DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/identity-management/iin-agent

- name: Push latest tag
if: ${{ env.IINAGENT_PUSH == 'true' }}
run: make push-image-latest
run: make push-image-latest DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/identity-management/iin-agent
12 changes: 7 additions & 5 deletions .github/workflows/weaver_deploy_relay-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

name: Deploy Relay Docker Image

env:
DOCKER_REGISTRY: ghcr.io/${{ github.repository_owner }}

on:
push:
tags:
Expand All @@ -14,7 +17,7 @@ on:

jobs:
publish-protos-rs:
if: github.repository_owner == 'hyperledger'
if: github.repository_owner == 'hyperledger-cacti'
runs-on: ubuntu-22.04
permissions:
packages: write
Expand All @@ -38,7 +41,6 @@ jobs:
working-directory: weaver/common/protos-rs/pkg

publish-relay-image:
if: github.repository_owner == 'hyperledger'
needs: publish-protos-rs
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -69,15 +71,15 @@ jobs:
working-directory: weaver/core/relay

- name: Check if package already exists
run: (make check-if-tag-exists && echo "RELAY_PUSH=true" >> $GITHUB_ENV) || echo "RELAY_PUSH=false" >> $GITHUB_ENV
run: (make check-if-tag-exists DOCKER_REGISTRY=${DOCKER_REGISTRY} && echo "RELAY_PUSH=true" >> $GITHUB_ENV) || echo "RELAY_PUSH=false" >> $GITHUB_ENV
working-directory: weaver/core/relay

- name: Build and Push
if: ${{ env.RELAY_PUSH == 'true' }}
run: make push-server
run: make push-server DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/relay

- name: Push latest tag
if: ${{ env.RELAY_PUSH == 'true' }}
run: (cat out | grep "exists") || make push-server-latest
run: (cat out | grep "exists") || make push-server-latest DOCKER_REGISTRY=${DOCKER_REGISTRY}
working-directory: weaver/core/relay
2 changes: 1 addition & 1 deletion weaver/common/policy-dsl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/hyperledger/cacti.git"
"url": "https://github.com/hyperledger-cacti/cacti.git"
},
"author": "",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion weaver/common/protos-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ make clean-build
```
## Steps to Use
* Just add `github.com/hyperledger/cacti/weaver/common/protos-go` to your imports, to use it.
* Just add `github.com/hyperledger-cacti/cacti/weaver/common/protos-go` to your imports, to use it.
* Run `go mod tidy` to populate your `go.mod` with the latest version.
## Publish
Expand Down
18 changes: 9 additions & 9 deletions weaver/common/protos-go/common/access_control.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions weaver/common/protos-go/common/ack.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions weaver/common/protos-go/common/asset_locks.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27a24dd

Please sign in to comment.