Comments (4)
Could you share a reproducer that we could turn into an integration test?
Cc @JamyDev
from rules_go.
Basically this is the issue:
If I use the same package name that the package Im testing everything works perfectly.
But If I wanna separate the package name of the test files the GOPACKAGESDRIVER starts to emit a false positive about the imported packages like it was imported outside of the parent internal package.
from rules_go.
It is like the GOPACKAGESDRIVER is forcing to implement only white-box tests (having access to everything in the internal package not only exported definitions) it is ok, but most of the time we wanna implement black-box tests (only the exported API of the package not all the internal things).
Thanks in advance for supporting.
from rules_go.
Hmm odd, based on the definition of where it's allowable to use internal packages this should not mark this as an issue. We did recently fix it not allowing you to even have the black box tests like this, so this is more akin to a warning, but I'll have a look to see how we can fix this.
from rules_go.
Related Issues (20)
- @go_sdk//:bin/gofmt is failed to run HOT 2
- Empty go.mod file in /tests: "missing module declaration" HOT 1
- Test binaries swallow SIGTERM; printed stack traces misleading HOT 8
- Unrecoverable error while evaluating node with Bazel@HEAD in CI HOT 2
- bzlmod: Stable go_sdk path available to IDEs e.g. VScode
- Really slow startup time HOT 5
- Nogo: cycle in dependency graph when building `genquery` targets HOT 6
- GoToolchainBinaryBuild leaves temp gopath dir (linux), or uploads to cache (windows) HOT 1
- cgo: `go link` detects all linker flags as unsupported when using custom cc toolchain HOT 5
- review Go analysis.Pass.Module proposal
- [Bazel CI] Test failure gopackagesdriver_test with Bazel@HEAD in CI HOT 4
- On build error, the actual failure is drowned out by a lot of noise related to the build command HOT 2
- Dependency cycle with google.golang.org/protobuf 1.33.0 HOT 4
- Support --incompatible_enable_proto_toolchain_resolution HOT 9
- Somewhat slow runs for clean builds of rules_go builder and stdlib HOT 1
- `@rules_go//go get` should trigger `bazel mod tidy`
- Access debug.BuildInfo for Go Binaries HOT 2
- Helix GOPLS Configuration Out of Date HOT 3
- Dependency cycle after go_proto_reset_plugin_ HOT 6
- [help] neovim `gopls` settings out of date HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_go.