Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Add option to create run steps that get cached and not runned again on startup #32

Open
mjlescano opened this issue May 10, 2022 · 1 comment

Comments

@mjlescano
Copy link
Member

No description provided.

@dbeal-eth
Copy link
Collaborator

so this is a practical issue that comes from providing this option in the first place. The only way (and even then it may not be enough). Therefore, when cannon builds a project, it keeps track of a value repositoryBuild, which determines if the build is ocuring in the project's original code directory. If it was imported or pulled from the cannon registry, it will be repositoryBuild = false. When the run step is invoked, it will check to make sure the current build is a repository build. If its not, it will fail immediately.

So in the end, the best solution to this problem is to not allow users to specify configurable injected options for a run step. If the configuration is not changed, the run invocation will be loadable from cache/already deployed to the network, and so there is no concern of a failure.

LMK if you have any better ideas for this, but I think following this pattern should work reasonably well and we might be able to find additional workarounds in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants