Hello,
to check this you should provide the relevant import statements for the
pkg{2,3} and the entries in the go.mod files of the packages.
There can be some mismatch.
BR,
Roland
Am So., 2. Nov. 2025 um 15:23 Uhr schrieb Peter Kleiweg <[email protected]
>:
> I have tree packages I want to work on locally. pkg1 imports pkg2. pkg2
> imports pkg3.
>
> I have a file `go.work`:
>
> go 1.25.3
> use (
> ./pkg1
> ./pkg2
> ./pkg3
> )
>
> When I build pkg2 it uses the local version of pkg3.
>
> But when I build pkg1, it uses the local version of pkg2, but not the
> local version of pkg3.
>
> How do I fix this?
>
>
> I use 'go 'work
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/golang-nuts/23d0e48c-c012-430c-9ed2-800fb37d82acn%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/23d0e48c-c012-430c-9ed2-800fb37d82acn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/golang-nuts/CA%2B8p0G2np4HuG9FaFmVJRREO%2BU6BCbfUQCwgQWiSGNZ0RXs6UQ%40mail.gmail.com.