wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.2k stars 296 forks source link

deploy script dependencies from `external` not resolved when using `--tags` #341

Open nataouze opened 2 years ago

nataouze commented 2 years ago

Describe the bug When running hardhat deploy with the --tags option, a deploy script that has a dependency on an external deploy script fails to run this dependency.

Expected behavior The external deploy scripts should consistently be usable as dependencies, whether --tags is used or not, same as with the local deploy scripts.

Alternative to bypass the issue Adding the dependency deploy script tag in the list of --tags correctly runs it.

versions

nataouze commented 1 year ago

Hello, any plan to look at this issue?

0xlucian commented 1 year ago

Hey you can just release your external deployments as npm package, import them in your project and just import the deployment function in a deployment file and add func.tags = ["Tag"]; in this file.. Please provide some code I can help with that