gomake will only rebuild on changes to source files with-in a .gomake folder, originally I thought this would be fine but what I found was that I was copying code out of the gomake tasks to actually use in some deployed services. Eventually I created a shared module.
If you are importing an external module or even a module local to the same git repo / solution then you will have to manually delete the generated runner to force a rebuild when anything changes, this is super annoying.
We should take into account the projects go.mod/go.sum files when creating the hash for makefile_generated.go
We should also take into account any "local" modules.
However I am conscious of not wanting to slow the actual cache hash generation as it may defeat the purpose in the first place.
gomake will only rebuild on changes to source files with-in a
.gomakefolder, originally I thought this would be fine but what I found was that I was copying code out of the gomake tasks to actually use in some deployed services. Eventually I created a shared module.If you are importing an external module or even a module local to the same git repo / solution then you will have to manually delete the generated runner to force a rebuild when anything changes, this is super annoying.
We should take into account the projects
go.mod/go.sumfiles when creating the hash formakefile_generated.goWe should also take into account any "local" modules.
However I am conscious of not wanting to slow the actual cache hash generation as it may defeat the purpose in the first place.