Skip to content
PidebugDevOps1 file · +5 −1

Fix go-licenses build failure in opentofu conda-forge feedstock

Session from conda-forge-agent-traces on Hugging Face by xhochy · BSD-3-Clause · condensed by Coders Talk

7msession
0interventions
GOAL

Fix a failing rattler-build build for the opentofu-feedstock aarch64 recipe by diagnosing and resolving the build error.

  1. Prompt · +0
    rattler-build build for linux_aarch64 fails; run it, observe the error, and fix it using the conda-forge skill.
  2. Agent did · +0m
    Read the conda-forge skill docs and inspected the feedstock's recipe.yaml and CI config for linux_aarch64.
  3. Agent did · +0m
    Ran the rattler-build command; it failed during a go-licenses check with an unknown/incompatible license error.
  4. Agent did · +2m
    Read the go-licenses skill reference, identified github.com/jmespath/go-jmespath as the package with an undetected license, and located its LICENSE file in the build cache.
  5. Agent did · +3m
    Edited recipe.yaml to add --ignore for the jmespath package to the go-licenses command and added manual copy commands to place its LICENSE file into license-files/.
  6. Agent did · +4m
    Cleaned the previous build output and reran rattler-build; the build completed successfully with license files included.
  7. Outcome · +7m
    Build succeeded after adding a go-licenses ignore and manual LICENSE copy for github.com/jmespath/go-jmespath.
VERDICT

I'd start the prompt by pointing directly at the go-licenses skill reference since that's what actually solved it — the fix was a known workaround pattern for packages with undetected licenses. Reading that reference and finding the actual LICENSE file location in the build cache is what did the work; no back-and-forth or corrections were needed since the agent found and applied the pattern in one pass.

I tried this · 0

Discussion · 0

How Builds work