Repository navigation
[copilot] Tell agents to init the api-docs submodule in new worktrees - #13780
Merged
simonrozsival merged 1 commit intoNov 25, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Member
Author
|
@dalexsoto review |
simonrozsival
enabled auto-merge (squash)
November 25, 2026 14:03
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the documentation-only update adding submodule initialization guidance.
No open issues 🎉
What changed in this PR
Updates the local-build skill to help agents avoid late build failures caused by an uninitialized API documentation submodule in new worktrees.
Changes:
- Instructs agents to run
git submodule update --initbefore building. - Includes the missing
Mono.Android.xmlerror so agents can recognize the failure.
This is documentation-only; build behavior and always-loaded instructions are unchanged.
| File | Description |
|---|---|
.github/skills/local-build/SKILL.md |
Adds the submodule initialization prerequisite and associated failure symptom. |
Review effort: Balanced
7 tasks
simonrozsival
added a commit
that referenced
this pull request
Nov 25, 2026
Move the SourceLink workaround next to the standalone dotnet test commands and leave api-docs submodule guidance to #13780. Co-authored-by: Copilot App <[email protected]>
dalexsoto
approved these changes
Nov 25, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
The new worktree instruction initializes the pinned api-docs submodule before building, matching the documentation-export input path. No blocking issues found in the change or its build-guidance integration.
simonrozsival
deleted the
dev/simonrozsival/agent-instructions-2026-11-25-2
branch
November 25, 2026 21:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context: #13778
external/android-api-docsis the repo's only submodule, and new git worktrees don't initialize it. Neithermake preparenor any agent instruction mentions it. Builds in such worktrees run for several minutes and then fail during packaging:_ExportMsxDocreadsexternal/android-api-docs/docs/xml(src/Mono.Android/Mono.Android.targets), soMono.Android.xmlis never produced.A review of local agent sessions found this pattern repeatedly:
git submodule update --init external/android-api-docsby hand, and 37 hit the error above.make leeroy, a search through a ~20k-line log, and a rebuild.git submodule update --init --recursiveif needed" as a workaround.This adds one bullet to the
local-buildskill: in a new worktree, rungit submodule update --initbefore building. The bullet includes the error text, so an agent that has already hit the failure can recognize it. The always-loaded instructions are unchanged.Making
make prepareinitialize the submodule would remove the step entirely, but it is a build-system change and is not part of this PR.Validation: documentation-only change; no build or tests run.