Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8b370c7b9 | ||
|
|
6f40b3a405 | ||
|
|
328aa0b8f5 | ||
|
|
d37b5ce6c1 | ||
|
|
aecf949a2a | ||
|
|
decd76f19d | ||
|
|
dad6f57d6d | ||
|
|
f189432d24 | ||
|
|
53207a1865 | ||
|
|
dfd84d2172 | ||
|
|
a2e269c3f3 | ||
|
|
a40db899c9 | ||
|
|
78f4f71743 | ||
|
|
2c27d0f51d | ||
|
|
d53f356dcd | ||
|
|
18b35c7ea9 | ||
|
|
96b5352755 | ||
|
|
e3ebf6d71e | ||
|
|
1f5135d9bd |
+12
@@ -0,0 +1,12 @@
|
|||||||
|
[submodule "submodule/src/bare"]
|
||||||
|
path = submodule/src/bare
|
||||||
|
url = git://github.com/laramiel/bazel-example-golang-bare
|
||||||
|
[submodule "submodule/src/remote"]
|
||||||
|
path = submodule/src/remote
|
||||||
|
url = git://github.com/laramiel/bazel-example-golang-remote
|
||||||
|
[submodule "vendor/github.com/laramiel/bazel-example-golang-remote"]
|
||||||
|
path = vendor/github.com/laramiel/bazel-example-golang-remote
|
||||||
|
url = git://github.com/laramiel/bazel-example-golang-remote
|
||||||
|
[submodule "vendor/github.com/laramiel/bazel-example-golang-bare"]
|
||||||
|
path = vendor/github.com/laramiel/bazel-example-golang-bare
|
||||||
|
url = git://github.com/laramiel/bazel-example-golang-bare
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_binary(
|
||||||
|
name = "hello",
|
||||||
|
srcs = ["hello.go"],
|
||||||
|
deps = [
|
||||||
|
"//cmd",
|
||||||
|
]
|
||||||
|
)
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
||||||
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||||
|
|
||||||
|
# git_repository(
|
||||||
|
# name = "io_bazel_rules_go",
|
||||||
|
# remote = "https://github.com/bazelbuild/rules_go.git",
|
||||||
|
# branch = "master",
|
||||||
|
# )
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "io_bazel_rules_go",
|
||||||
|
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
|
||||||
|
urls = [
|
||||||
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
|
||||||
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
||||||
|
|
||||||
|
go_rules_dependencies()
|
||||||
|
|
||||||
|
go_register_toolchains(version = "1.19.3")
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
/private/var/tmp/_bazel_christian/3262850bcac806b0124f7f44b81dceb1/execroot/__main__
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name ="cmd",
|
||||||
|
srcs = [ "cmd.go" ],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
importpath= "github.com/squk/lotr/cmd"
|
||||||
|
)
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello World. Cmd")
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello World")
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "bare",
|
||||||
|
srcs = ["bazel-example-golang-bare/bare.go"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
+1
Submodule vendor/github.com/laramiel/bazel-example-golang-bare added at 3bd848fc12
+1
Submodule vendor/github.com/laramiel/bazel-example-golang-remote added at 4a9199be6e
Reference in New Issue
Block a user