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
In the gonum project we have a github.com/gonum/internal repository that
holds shared internal code used by other repositories in the project.
From my reading of the internal packages proposal there should be no
problem doing this; there is no indication of the notion of a repository
in the proposal, just paths.
An import of a path containing the element “internal” is disallowed if
the importing code is outside the tree rooted at the parent of the
“internal” directory.
However, we are now seeing failures on tip (starting with 8f0cc6c) with e.g. the following set
up:
floats "github.com/gonum/floats" imports asm:
import "github.com/gonum/internal/asm"
The failure does not appear to be by design however:
Seeing this with github.com/awslabs/aws-sdk-go/aws as well.
It's importing github.com/awslabs/aws-sdk-go/internal/apierr. disallowInternal seems to be panicing when it gets a Package that's just the error: cannot find package "github.com/aws/aws-sdk-go/internal/apierr"
In the gonum project we have a github.com/gonum/internal repository that
holds shared internal code used by other repositories in the project.
From my reading of the internal packages proposal there should be no
problem doing this; there is no indication of the notion of a repository
in the proposal, just paths.
However, we are now seeing failures on tip (starting with 8f0cc6c) with e.g. the following set
up:
floats "github.com/gonum/floats" imports asm:
import "github.com/gonum/internal/asm"
The failure does not appear to be by design however:
Originally posted at golang-dev.
The text was updated successfully, but these errors were encountered: