Skip to content

Commit

Permalink
fix: fix grantUserWriteAccess for cpprc
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 11, 2023
1 parent bb40564 commit 6a37ff7
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 19 deletions.
4 changes: 2 additions & 2 deletions dist/actions/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/actions/setup-cpp.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/legacy/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/modern/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@types/semver": "^7.5.0",
"@types/which": "^3.0.0",
"@upleveled/babel-plugin-remove-node-prefix": "github:aminya/babel-plugin-remove-node-prefix#95fcbd92405b99a6eece48c493548996f12e6519",
"admina": "^0.2.1",
"admina": "^0.2.2",
"caxa": "^3.0.1",
"ci-info": "^3.8.0",
"ci-log": "workspace:*",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/utils/env/addEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ export async function finalizeCpprc() {

writeFileSync(cpprc_path, unique_entries.join("\n"))

try {
await grantUserWriteAccess(cpprc_path)
} catch {
// ignore
}
await grantUserWriteAccess(cpprc_path)
}
}

0 comments on commit 6a37ff7

Please sign in to comment.