You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I change the interface of a module, I start getting build errors for the autogenerated fake implementations, as I'd expect. However, if I regenerate these files and proceed, the freshly generated files break the project.
A minimal reproduction:
From the cli directory
> cd cli
A build succeeds
> opctl run build
Don't make any real changes for this example.
Regenerate the fake clicolorer implementation (this also will reproduce similarly for other fake implementations)
> rm internal/clicolorer/fake.go
> opctl run -a path=internal/clicolorer/cliColorer.go generate
Now, building fails and cli/internal/clicolorer/fake.go has about 278 changed lines.
> opctl run build
import cycle not allowed
package github.com/opctl/opctl/cli
imports github.com/opctl/opctl/cli/internal/clicolorer
imports github.com/opctl/opctl/cli/internal/clicolorer
can't load package: import cycle not allowed
package github.com/opctl/opctl/cli
imports github.com/opctl/opctl/cli/internal/clicolorer
imports github.com/opctl/opctl/cli/internal/clicolorer
The text was updated successfully, but these errors were encountered:
If I change the interface of a module, I start getting build errors for the autogenerated fake implementations, as I'd expect. However, if I regenerate these files and proceed, the freshly generated files break the project.
A minimal reproduction:
From the cli directory
A build succeeds
Don't make any real changes for this example.
Regenerate the fake clicolorer implementation (this also will reproduce similarly for other fake implementations)
Now, building fails and
cli/internal/clicolorer/fake.go
has about 278 changed lines.The text was updated successfully, but these errors were encountered: