neiam
/waxx
waxx
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
dependency-update: fetch deps before updating a transitive Hex package
9b499e9 · Gabriel Morell · 2026-10-23 04:41
Message
{commit_body(@commit)}
Files changed
modified
scripts/dependency-update
+6
−1
@@ -183,7 +183,12 @@ def bump(ecosystem, lockfile, entries):
| 183 | 183 | |
| 184 | 184 | if ecosystem == "Hex": |
| 185 | 185 | # deps.update takes them as far as mix.exs allows, which may be |
| 186 | − # past the fix; checked against the target below. | |
| 186 | + # past the fix; checked against the target below. On a fresh | |
| 187 | + # checkout it knows only mix.exs's own deps until deps.get has | |
| 188 | + # fetched the rest ("Unknown dependency" for a transitive one). | |
| 189 | + got = run(["mix", "deps.get"], cwd=root, check=False) | |
| 190 | + if got.returncode != 0: | |
| 191 | + return [], left + [dict(e, reason=f"mix deps.get failed: {got.stderr.strip()[-200:]}") for e in fixable], [] | |
| 187 | 192 | out = run(["mix", "deps.update"] + sorted({e["name"] for e in fixable}), cwd=root, check=False) |
| 188 | 193 | if out.returncode != 0: |
| 189 | 194 | return [], left + [dict(e, reason=f"mix deps.update failed: {out.stderr.strip()[-200:]}") for e in fixable], [] |
Parents: 05b3740