Nick Irvine

Results 19 comments of Nick Irvine
trafficstars

Um, not quite. It does let you copy-paste directly, yes, but I was hoping for real HCL, not HCL in a string. For syntax highlighting, linting, etc.

> @nfi-hashicorp Thanks for the clarification. In that case, I think you could write the vault policy as a separate file and then use the [file function](https://developer.hashicorp.com/terraform/language/functions/file)? Right, but I'm...

Thanks, yes, that confirms what I've gathered from the docs/source. One other problem I just realized is that the cache key also misses dynamic things like build tags, linker flags,...

> I understand your requirements and the short answer is: the [actions/cache](https://github.com/actions/cache) is for you. Yeah, possibly. But that means coming up with a cache key that incorporates every input....

In [this build](https://github.com/nfi-hashicorp/action-setup-go-testing/actions/runs/5593356389), I have two parallel flows, one that builds an AMD64 build twice, and one that builds an ARM64 build twice. I deleted all caches for this repo...

I should note that the above really only applies to the build cache (`GOCACHE`). The logic for the mod cache (`GOMODCACHE`) is probably ok. However, I can see no good...

Thanks! I appreciate all the hard work, LMK if I can help

> aren't they are in the private repository? Yes, they were :P Sorry about that. It's public now. > Meanwhile, from that i saw in the comment describing you workflow...

Another problem that's related: [apparently Github action cache can't be overwritten, it must be deleted first](https://github.com/actions/toolkit/issues/505). I'm not sure if that's considered a bug or design flaw, or "works as...

> ``` > cache-dependency-path: go.sum mod1/**/*.go > ``` That could work provided you have no files that are conditionally included. E.g. `_test.go`, `_.go`, etc. However, this would have to effect...