Batteries are disabled with a no_<feature> build tag, paired with a builtins_<feature>_not.go stub carrying the same tag. Several places deviate from this:
builtins_sxml_not.go is guarded by not_sxml, while builtins_sxml.go uses !no_sxml. The two tags don't match, so -tags no_sxml excludes both files and the build breaks:
$ go build -tags no_sxml github.com/refaktor/rye
batteries/builtins_structures.go:67:16: undefined: load_saxml_Dict batteries/register.go:56:27: undefined: Builtins_sxml
-
builtins_term.go and builtins_termstr.go are guarded by b_no_term, while the other batteries use the no_<feature> form.
-
Build scripts pass disable tags that no source file reads, so they have no effect:
no_termui in buildwasm and .goreleaser.yaml (the battery tag is no_tui)
b_no_io in build_tinygo (the battery tag is no_io)
Batteries are disabled with a
no_<feature>build tag, paired with abuiltins_<feature>_not.gostub carrying the same tag. Several places deviate from this:builtins_sxml_not.gois guarded bynot_sxml, whilebuiltins_sxml.gouses!no_sxml. The two tags don't match, so-tags no_sxmlexcludes both files and the build breaks:builtins_term.goandbuiltins_termstr.goare guarded byb_no_term, while the other batteries use theno_<feature>form.Build scripts pass disable tags that no source file reads, so they have no effect:
no_termuiinbuildwasmand.goreleaser.yaml(the battery tag isno_tui)b_no_ioinbuild_tinygo(the battery tag isno_io)