cuemata/MODULE.bazel
Hoang Nguyen bd9eb75787
Rename project to cuemata
* Bring golangci-lint back
* Switch back to flake-utils, since the flake is rather small

and various other improvements.
2024-03-15 00:00:00 +07:00

35 lines
1 KiB
Plaintext

# SPDX-FileCopyrightText: 2023 Hoang Nguyen <folliekazetani@protonmail.com>
#
# SPDX-License-Identifier: Apache-2.0
module(
name = "cuemata",
version = "0.0.0",
repo_name = "com_gitlab_folliehiyuki_cuemata",
)
bazel_dep(name = "rules_go", version = "0.46.0")
# FIXME: temporarily use the Go SDK from host, until we have rules_nixpkgs_go
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.nogo(nogo = "//:nogo_vet")
go_sdk.host()
bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True)
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_goccy_go_json",
"com_github_goccy_go_yaml",
"com_github_pelletier_go_toml_v2",
"com_github_spf13_cobra",
)
# Expose the generated CUE files as Bazel inputs, so other modules can use them
bazel_dep(name = "rules_cue", version = "0.5.0")
cue = use_extension("@rules_cue//cue:extensions.bzl", "cue")
cue.download(version = "v0.7.0")