Commit 1df000e
committed
feat: Add Go vendor directory support
WHAT:
- Detect vendor/modules.txt to identify projects using vendoring
- Automatically run 'go mod vendor' after 'go mod tidy' when vendor exists
- This keeps vendor/ directory in sync with go.mod/go.sum after dependency updates
WHY:
- Renovate and Dependabot both support vendor directories
- When dependencies are updated, vendor/ needs to be regenerated
- Following industry best practices from Renovate's postUpdateOptions
HOW IT WORKS:
1. After running 'go get package@version'
2. Run 'go mod tidy' (already existed)
3. NEW: Check for vendor/modules.txt
4. NEW: If found, run 'go mod vendor' to update vendor/ directory
TESTING:
- Test repo: frogbot-test-multi-go (has vendor/ in both projects)
- Expected: After fix, vendor/ directory should be updated in PR
REFERENCES:
- Renovate: config.postUpdateOptions includes 'gomodTidy'
- Dependabot: Automatically detects and updates vendor directories
- Analysis: dependency-update-tools-analysis-mermaid.md1 parent 9d99448 commit 1df000e
1 file changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
82 | 123 | | |
83 | 124 | | |
0 commit comments