Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
embedsrcs_static/ | 04-Jul-2025 | - | ||||
BUILD.bazel | D | 04-Jul-2025 | 3.4 KiB | 169 | 147 | |
README.rst | D | 04-Jul-2025 | 1.7 KiB | 57 | 40 | |
def.bzl | D | 04-Jul-2025 | 581 | 23 | 21 | |
embedsrcs_error_test.go | D | 04-Jul-2025 | 2.7 KiB | 139 | 101 | |
embedsrcs_gen_test.go.in | D | 04-Jul-2025 | 697 | 21 | 17 | |
embedsrcs_simple_test.go | D | 04-Jul-2025 | 94 | 7 | 3 | |
embedsrcs_test.go | D | 04-Jul-2025 | 4.6 KiB | 200 | 167 | |
empty_bar.go | D | 04-Jul-2025 | 30 | 4 | 1 | |
empty_baz.s | D | 04-Jul-2025 | 17 | 2 | 0 | |
empty_foo.go | D | 04-Jul-2025 | 30 | 4 | 1 | |
empty_main.go | D | 04-Jul-2025 | 29 | 4 | 2 | |
gen_embedsrcs_files.go | D | 04-Jul-2025 | 1.2 KiB | 52 | 34 | |
import_alias_a_v2.go | D | 04-Jul-2025 | 657 | 18 | 2 | |
import_alias_b.go | D | 04-Jul-2025 | 654 | 18 | 2 | |
import_alias_test.go | D | 04-Jul-2025 | 934 | 34 | 16 | |
inc.go | D | 04-Jul-2025 | 12 | 2 | 1 | |
inc_asmhdr.s | D | 04-Jul-2025 | 20 | 2 | 1 | |
inc_bar.s | D | 04-Jul-2025 | 21 | 2 | 1 | |
inc_foo.s | D | 04-Jul-2025 | 0 | 1 | 0 | |
no_srcs_test.go | D | 04-Jul-2025 | 1.9 KiB | 79 | 54 | |
package_height.go | D | 04-Jul-2025 | 103 | 7 | 4 | |
package_height_dep_deep.go | D | 04-Jul-2025 | 56 | 8 | 5 | |
package_height_dep_shallow.go | D | 04-Jul-2025 | 29 | 4 | 2 | |
package_height_embeddee.go | D | 04-Jul-2025 | 71 | 8 | 5 | |
package_height_embedder.go | D | 04-Jul-2025 | 27 | 4 | 2 |
README.rst
1Basic go_library functionality 2============================== 3 4.. _go_library: /docs/go/core/rules.md#_go_library 5.. _#1262: https://github.com/bazelbuild/rules_go/issues/1262 6.. _#1520: https://github.com/bazelbuild/rules_go/issues/1520 7.. _#1772: https://github.com/bazelbuild/rules_go/issues/1772 8.. _#2058: https://github.com/bazelbuild/rules_go/issues/2058 9.. _#3558: https://github.com/bazelbuild/rules_go/issues/3558 10 11empty 12----- 13 14Checks that a `go_library`_ will compile and link even if all the sources 15(including assembly sources) are filtered out by build constraints. 16 17asm_include 18----------- 19 20Checks that assembly files in a `go_library`_ may include other assembly 21files in the same library. Verifies `#1520`_. 22 23asm_header 24---------- 25 26Checks that assembly files in a `go_library`_ may include ``"go_asm.h"``, 27generated by the compiler. Verifies `#1262`_. 28 29package_height 30-------------- 31 32Checks that when a library embeds another library, the embedder's dependencies 33may override the embeddee's dependencies. Verifies `#1772`_. 34 35import_alias_test 36----------------- 37 38Checks that a library may import another library using one of the strings 39listed in ``importpath_aliases``. This is the basic mechanism for minimal 40module compatibility. Verifies `#2058`_. 41 42embedsrcs_test 43-------------- 44 45Checks that `go_library`_ can match ``//go:embed`` directives to files listed 46in the ``embedsrcs`` attribute and can pass those files to the compiler. 47 48embedsrcs_error_test 49-------------------- 50 51Verifies common errors with ``//go:embed`` directives are correctly reported. 52 53no_srcs_test 54------------ 55 56Verifies that `go_library`_ targets without Go source files build concurrently, 57even unsandboxed, and reproducibly. Verifies `#3558`_.