Giter Club home page Giter Club logo

Comments (1)

pmbethe09 avatar pmbethe09 commented on May 16, 2024

Not a bug, but it looks like if !HasTestMain && len(Names) == 0 then the
package undertest is not used.
But that is a useless test -- if there is no TestMain being called, and no
Test* functions, then nothing will happen.
If anything is missing, it is that we don't have something that errros out
if the above condition is true just before the "tmp :=" line you linked.

On Wed, Sep 28, 2016 at 5:06 AM, GinFungYJF [email protected]
wrote:

When I use bazel to build my go_test, it shows the error:

ERROR: /root/testgo/hsa-service-center/src/servicecenter/controllers/BUILD:35:1:
null failed: linux-sandbox failed: error executing command
/root/.cache/bazel/_bazel_root/40633db3e907142ca23269a67b71fa
41/execroot/src/_bin/linux-sandbox ... (remaining 3 argument(s) skipped).
bazel-out/local-fastbuild/bin/servicecenter/controllers/
instance_watcher_main_test.go:7: imported and not used:
"servicecenter/controllers/instance_watcher" as undertest
Target //servicecenter/controllers:instance_watcher failed to build

but when I delete the line https://github.com/bazelbuild/
rules_go/blob/master/go/tools/generate_test_main.go#L95 ,
it works. Is it a bug?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#120, or mute the thread
https://github.com/notifications/unsubscribe-auth/ALF-0j18JYvO9Y9tQktTAbSeTyzhxMNCks5qui4mgaJpZM4KIlJO
.

from rules_go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.