From 7d87d3089d965bfc351f4cfb9ab7f690612a1872 Mon Sep 17 00:00:00 2001 From: Minae Lee Date: Mon, 2 Feb 2026 10:31:52 -0700 Subject: [PATCH] doc: set GOTOOLCHAIN=auto for RTD Go builds Update .readthedocs.yaml to set GOTOOLCHAIN=auto when building the lxd integration and make doc-html-rtd. This fixes RTD build issues by allowing Go to auto-fetch the required Go patch version when the local toolchain is outdated. Signed-off-by: Minae Lee --- doc/.readthedocs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/.readthedocs.yaml b/doc/.readthedocs.yaml index 4e8f7690f..3df760f20 100644 --- a/doc/.readthedocs.yaml +++ b/doc/.readthedocs.yaml @@ -13,14 +13,14 @@ build: python: "3.12" commands: - git fetch --unshallow || true - - cd doc && make integrate - - cd doc/integration/lxd/ && go build -ldflags "-s -w" -o trimpath -o lxc.bin ./lxc + - cd doc && make GOTOOLCHAIN=auto integrate + - cd doc/integration/lxd/ && GOTOOLCHAIN=auto go build -ldflags "-s -w" -o trimpath -o lxc.bin ./lxc # Pretend that woke is installed - we don't need it for building # (workaround until https://github.com/canonical/microovn/pull/168 is merged # and https://github.com/canonical/microceph/pull/400 is restored) - ln -s /bin/true doc/integration/microovn/docs/woke - ln -s /bin/true doc/integration/microceph/docs/woke - - make doc-html-rtd PATH=$PATH:. + - make GOTOOLCHAIN=auto doc-html-rtd PATH=$PATH:. # Build documentation in the docs/ directory with Sphinx sphinx: