You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to have granular migrations similar to most tooling so that I can test out my migrations and have a well known migration path.
Setup
# create new project
clarinet new devnet-feature &&cd devnet-feature && npm i
# create contracts
clarinet contract new contract-v1
clarinet contract new contract-v2
# generate deployments
clarinet deployment generate --devnet
mv deployments/default.devnet-plan.yaml ./deployments/initial.deploy.
yaml
# remove `contract-v2` from the deployment file above
clarinet deployment generate --devnet
mv deployments/default.devnet-plan.yaml ./deployments/upgrade.deploy.
yaml
# remove `contract-v1` from the deployment file above# Run initial deployment
clarinet integrate --deployment-plan-path=./deployments/initial.deploy.yaml
Fails with
cipherz@cipherz-razer:~/projects/mechanism/devnet-feature$ clarinet integrate --deployment-plan-path=./deployments/initial.deploy.yaml
warn: This command is deprecated. Use 'clarinet devnet start' instead
Computing deployment plan
unexpected error: receiving on a closed channel
terminating devnet network: logs and chainstate available at location /home/cipherz/projects/mechanism/devnet-feature/./.cache/stacks-devnet-1728066203
error: unable to start bitcoind container: network devnet-feature.devnet is ambiguous (2 matches found on name)
I tried
docker network prune
It fails with the same error
What I'd like to be able to do is start the devnet with the specified file and then run
error: unable to start bitcoind container: network devnet-feature.devnet is ambiguous (2 matches found on name)
That's the real issue. You could have an container or a volume that still use an volume. Or it could be something else.
If you don't want to spend too much time finding what's wrong docker system prune --all will prune all your docker and leave it ready to be used (but that's only if you're ok to loose all of your images, volumes, etc)
Summary
I'd like to be able to have granular migrations similar to most tooling so that I can test out my migrations and have a well known migration path.
Setup
Fails with
I tried
It fails with the same error
What I'd like to be able to do is start the devnet with the specified file and then run
clarinet deployment apply --deployment-plan-path=./deployments/upgrade.deploy.yaml
The text was updated successfully, but these errors were encountered: