garden icon indicating copy to clipboard operation
garden copied to clipboard

Garden trying to evaluate modules while linking source

Open failshell opened this issue 3 years ago • 2 comments

Bug

Current Behavior

Garden is trying to evaluate modules based on the defined sources in the project while linking sources. That leads to an error.

☸ ops in garden-as-code/projects/hello-world on  master [?] execution time: 4s
2021-03-01 08:27:48 ❯ g link source shared ~/src/garden/garden-shared
Link source 🔗

✔ garden-enterprise         → Ready
Templated module linting-dockerfile references template helper-generate-hadolint-configuration, which cannot be found. Available templates: helper-wait-for-ingress

See error.log for detailed error message

Expected behavior

I should be able to link sources without garden evaluating the defined sources in the project.

Workaround

Comment module and link, then uncomment the module.

Your environment

  • OS: macOS
  • garden version: 0.12.17

failshell avatar Mar 01 '21 13:03 failshell

Thanks for the report. I'll look into this.

eysi09 avatar Apr 14 '21 22:04 eysi09

I'm not sure, but this may be fixed as part of the stack graph v2 refactor we're working on.

If not, the solution here might be to skip resolving modules and module templates in the garden link commands (or only resolve the minimal amount of context needed).

thsig avatar May 31 '22 09:05 thsig

Closing this as fixed in Bonsai (Garden 0.13). @failshell please let us know if this is still an issue.

vvagaytsev avatar Jul 04 '23 11:07 vvagaytsev