0

When I import native package into native test file.

package tests

import (
    ...
    "github.com/myGithubProjectRootPath/internal/platform/web"
)

...

It report a import package path not allowed error.

Suspicious state from syntax checker go-vet: Flycheck checker go-vet returned non-zero exit code 1, but its output contained no errors: package command-line-arguments (test)

imports github.com/myGithubProjectRootPath/internal/platform/web: use of internal package github.com/myGithubProjectRootPath/internal/platform/web not allowed

Try installing a more recent version of go-vet, and please open a bug report if the issue persists in the latest release. Thanks!

The tests.go under myGithubProjectRootPath/cmd/user-api/tests directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.