I’ve a venture arrange as such:
myproject
loadoptions
loadoptions.go
go.mod
backstack
backstack.go
go.mod
thirdthing
thirdthing.go
go.mod
//A lot of irrelevant stuff, bla bla bla
There’s a construction outlined in thirdthing.go, utilized in loadoptions.go, then the perform from loadoptions known as in backstack. Every is changed in go.mod, in order that these native recordsdata are included as a substitute of the gitlab downloaded model. I added a component to the struct in thirdthing, then tried to construct backstack. This fails as a result of it doesn’t acknowledge the brand new ingredient. I ran go construct within the loadoptions listing and it really works. Working go mod tidy in all directories doesn’t appear to work both.
I copied the error under:
../loadoptions/loadoptions.go:107:11: retDat.LoggerFailKillProcess undefined (kind imgProc.ConfigOptions has no area or methodology LoggerFailKillProcess)
UPDATE:
My web was out. I pushed the change to the struct earlier than it went out, and, as soon as it got here again go construct downloaded the modified model. I clearly have some challenge with my change directive in go.mod. Weirdly sufficient, it’s working now.
This subject was mechanically closed 90 days after the final reply. New replies are not allowed.