wighawag / hardhat-deploy

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

use `external` deploy scripts as *only* dependencies (do not run them by default) #342

Open nataouze opened 2 years ago

nataouze commented 2 years ago

Is your feature request related to a problem? Please describe. When configuring external deploy scripts and running hardhat-deploy, these deploy scripts will all be run prior to running the local deploy scripts. I would like to be able to have external deploy scripts which run only when a local deploy script depends on them.

Describe the solution you'd like The solution could be an additional flag in the external.contracts configuration to switch to the "dependency-only" new behaviour, such as:

  external: {
    contracts: [
      {
        artifacts: ['external/artifacts'],
        deploy: 'external/deploy',
        run: false, // defaults to true
      },

or:

  external: {
    contracts: [
      {
        artifacts: ['external/artifacts'],
        deploy: 'external/deploy',
        dependencyOnly: true, // defaults to false
      },

Describe alternatives you've considered As for now, in order not to run all the external deploy scripts, my solution is to only run hardhat deploy with the --tags option.

nataouze commented 1 year ago

Hello, any plan to look at this issue?