Compare commits

..
1 Commits
Author SHA1 Message Date
christian 7fa763041d Initial commit 2023-07-03 16:31:49 -06:00
13 changed files with 1 additions and 86 deletions
+1
View File
@@ -35,3 +35,4 @@
# Go workspace file
go.work
-12
View File
@@ -1,12 +0,0 @@
[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
-13
View File
@@ -1,13 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
package(
default_visibility = ["//visibility:public"],
)
go_binary(
name = "hello",
srcs = ["hello.go"],
deps = [
"//cmd",
]
)
-23
View File
@@ -1,23 +0,0 @@
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")
-1
View File
@@ -1 +0,0 @@
/private/var/tmp/_bazel_christian/3262850bcac806b0124f7f44b81dceb1/execroot/__main__
-8
View File
@@ -1,8 +0,0 @@
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"
)
-9
View File
@@ -1,9 +0,0 @@
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
-9
View File
@@ -1,9 +0,0 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World")
}
-7
View File
@@ -1,7 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "bare",
srcs = ["bazel-example-golang-bare/bare.go"],
visibility = ["//visibility:public"],
)