Skip to content

Commit 013f492

Browse files
committed
feat(go): add Bazel configuration for Go Gin template
- Set up rules_go v0.59.0 and gazelle v0.47.0 - Configure Go SDK 1.25.5 - Add go_deps extension for dependency management - Configure Bazel 8.5.1 with Go-optimized build flags
1 parent a3e5f5b commit 013f492

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

go/gin/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build --incompatible_enable_cc_toolchain_resolution
2+
build --enable_platform_specific_config
3+
4+
test --features=race

go/gin/.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.5.1

go/gin/MODULE.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module(
2+
name = "entrydsm_example_go_gin",
3+
version = "0.0.0",
4+
)
5+
6+
bazel_dep(name = "rules_go", version = "0.59.0")
7+
bazel_dep(name = "gazelle", version = "0.47.0")
8+
9+
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
10+
go_sdk.download(version = "1.25.5")
11+
12+
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
13+
go_deps.from_file(go_mod = "//:go.mod")

0 commit comments

Comments
 (0)