This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To set up the Go repo | |
| git clone https://go.googlesource.com/go | |
| cd go | |
| git checkout dev.typeparams | |
| cd src | |
| ./make.bash | |
| Use that directory with go_local_sdk in WORKSPACE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("//:def.bzl", "mkdata") | |
| mkdata(name = "mkdata") | |
| sh_test( | |
| name = "mkdata_test", | |
| srcs = ["mkdata_test.sh"], | |
| args = ["$(location :mkdata)"], | |
| data = [":mkdata"], | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "io_bazel_rules_go", | |
| sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3", | |
| urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz"], | |
| ) | |
| http_archive( | |
| name = "bazel_gazelle", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | |
| # gazelle:prefix example.com/repo | |
| load("@bazel_gazelle//:def.bzl", "gazelle") | |
| gazelle(name = "gazelle") | |
| go_library( | |
| name = "go_default_library", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "C" | |
| //export GoAdd | |
| func GoAdd(a, b int) int { | |
| return a + b | |
| } | |
| func main() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2017-11-15 12:42:20 | |
| Full thread dump OpenJDK 64-Bit Server VM (25.144-b01 mixed mode): | |
| "Attach Listener" #573 daemon prio=9 os_prio=0 tid=0x00007f0a80001000 nid=0x198c waiting on condition [0x0000000000000000] | |
| java.lang.Thread.State: RUNNABLE | |
| "skyframe-evaluator 199" #571 prio=5 os_prio=0 tid=0x00007f09540ab800 nid=0x6e69 waiting on condition [0x00007f092e7e6000] | |
| java.lang.Thread.State: WAITING (parking) | |
| at sun.misc.Unsafe.park(Native Method) | |
| - parking to wait for <0x00000005ccb7fa40> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) |