Skip to content

Commit

Permalink
Fix backstage versioning script path
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Aug 5, 2022
1 parent b55ec85 commit 89968f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .backstage/version.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const err = (m) => {
if (!version) err("Script expected a GIT_VERSION environment variable");

const file = (localPath) => {
localPath = localPath.join(__dirname, "../humane/Cargo.toml");
localPath = path.join(__dirname, localPath);
if (!fs.existsSync(localPath)) err(`Script expected a file at ${localPath}`);
const contents = fs.readFileSync(localPath, { encoding: "utf-8" });
if (!version_re.test(contents)) err(`Expected ${localPath} to contain a version of "0.0.0"`);
Expand Down

0 comments on commit 89968f1

Please sign in to comment.