Giter Club home page Giter Club logo

Comments (3)

fmeum avatar fmeum commented on June 19, 2024

@DolceTriade Do you have a reproducer? Our tests for nogo don't catch this.
@sluongng @emmaxy Any ideas?

from rules_go.

DolceTriade avatar DolceTriade commented on June 19, 2024

I can't reproduce it in a minimal set up. I'll try some more and see if its something I can reproduce outside of our repository...

from rules_go.

DolceTriade avatar DolceTriade commented on June 19, 2024

nvm, I repro'd it.

https://github.com/DolceTriade/monorepo/tree/minimal

INFO: Invocation ID: 8954761e-7090-4656-ae1e-a13279895b82
INFO: Analyzed 2 targets (0 packages loaded, 0 targets configured).
ERROR: /home/hmodi/monorepo/repro/subdir/mod/BUILD.bazel:10:8: GoCompilePkg repro/subdir/mod/mod_test_test.external.a failed: (Exit 1): builder failed: error executing GoCompilePkg command (from target //repro/subdir/mod:mod_test) bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src repro/subdir/mod/mod.go -src repro/subdir/mod/mod_test.go ... (remaining 26 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
compilepkg: nogo: errors found by nogo during build-time code analysis:
bazel-out/k8-fastbuild/bin/repro/subdir/mod/2404402859.go:1:1: at least one file in a package should have a package comment (ST1000)
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.143s, Critical Path: 0.04s
INFO: 2 processes: 2 internal.
ERROR: Build did NOT complete successfully

The file in that module:

// Package mod does a bunch of stuff.
package mod

func Important() {
}

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.