ash2k / bazel-tools

Reusable bits for Bazel
Apache License 2.0
58 stars 28 forks source link

Is this project in a working state? #31

Open EArbeitman opened 1 year ago

ash2k commented 1 year ago

I use it, so I think it is.

EArbeitman commented 1 year ago

Hey @ash2k thanks for chiming in. I ask mostly because the most recent release was from 2021.

Do you have any links or example usages you could share?

EArbeitman commented 1 year ago

Maybe you can help me address this error:

WARN [runner] Can't run linter goanalysis_metalinter: inspect: failed to load package app: could not load export data: no export data for "compass.com/app"
ERRO Running error: inspect: failed to load package app: could not load export data: no export data for "compass.com/app"

Here's my configuration:

BUILD

load("@com_github_ash2k_bazel_tools//golangcilint:def.bzl", "golangcilint")

golangcilint(
    name = "golangcilint",
    config = "//src/go:lint-config",
    paths = [
        "src/go/compass.com/app/...",
    ],
    prefix = "compass.com",
)

WORKSPACE

git_repository(
    name = "com_github_ash2k_bazel_tools",
    commit = "aefb11464b6b83590e4154a98c29171092ca290f",
    remote = "https://github.com/ash2k/bazel-tools",
    shallow_since = "1644872739 +1100",
)

load("@com_github_ash2k_bazel_tools//golangcilint:deps.bzl", "golangcilint_dependencies")

golangcilint_dependencies()
ash2k commented 1 year ago

The only rules from this project I personally use are multirun and bulldozer. All the linters don't work well with bazel.