Semver check: drop the unobservable stdio option; the empty-package test really creates the directory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
df13b502b9
commit
c358ef9739
2 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ export function evaluateRelease({ packageName, changelogText, version, previousV
|
|||
function resolvePreviousVersion(tagPrefix, currentVersion, cwd) {
|
||||
// A directory that cannot list tags (not a git repository, git missing) throws: that
|
||||
// is not evidence that there was no previous release.
|
||||
const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] })
|
||||
const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8" })
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
.filter(Boolean);
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ test("measured: restores that succeed without delivering the reference assemblie
|
|||
assert.match(runCheckerExpectFailure(dir, measuredArgs(dir, "1.0.1", [oldWidget()]), { script, env }), notRestored);
|
||||
});
|
||||
// The package directory arrives, but without netstandard.dll in it.
|
||||
const emptyPackage = 'if [ "$1" = restore ]; then mkdir -p packages/netstandard.library.ref/2.1.0/ref/netstandard2.1; fi\nexit 0';
|
||||
const emptyPackage = 'if [ "$1" = restore ]; then /bin/mkdir -p packages/netstandard.library.ref/2.1.0/ref/netstandard2.1; fi\nexit 0';
|
||||
withFakeDotnet(emptyPackage, (env) => {
|
||||
assert.match(runCheckerExpectFailure(dir, measuredArgs(dir, "1.0.1", [oldWidget()]), { script, env }), notRestored);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue