blob: 167990462cd0af9682a887147cc30025ed13af33 [file] [log] [blame]
Basic go_library functionality
==============================
.. _go_library: /docs/go/core/rules.md#_go_library
.. #1262: https://github.com/bazelbuild/rules_go/issues/1262
.. #1520: https://github.com/bazelbuild/rules_go/issues/1520
.. #1772: https://github.com/bazelbuild/rules_go/issues/1772
.. #2058: https://github.com/bazelbuild/rules_go/issues/2058
empty
-----
Checks that a `go_library`_ will compile and link even if all the sources
(including assembly sources) are filtered out by build constraints.
asm_include
-----------
Checks that assembly files in a `go_library`_ may include other assembly
files in the same library. Verifies `#1520`_.
asm_header
----------
Checks that assembly files in a `go_library`_ may include ``"go_asm.h"``,
generated by the compiler. Verifies `#1262`_.
package_height
--------------
Checks that when a library embeds another library, the embedder's dependencies
may override the embeddee's dependencies. Verifies `#1772`_.
import_alias_test
-----------------
Checks that a library may import another library using one of the strings
listed in ``importpath_aliases``. This is the basic mechanism for minimal
module compatibility. Verifies `#2058`_.
embedsrcs_test
--------------
Checks that `go_library`_ can match ``//go:embed`` directives to files listed
in the ``embedsrcs`` attribute and can pass those files to the compiler.
embedsrcs_error_test
--------------------
Verifies common errors with ``//go:embed`` directives are correctly reported.