@gearbox-protocol/deploy-tools 5.49.6 → 5.49.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -429514,14 +429514,11 @@ var log_default = logger;
|
|
|
429514
429514
|
var log = log_default.child({ name: "git" });
|
|
429515
429515
|
function getGithubUrl(repo, https = false) {
|
|
429516
429516
|
const credentials = process.env.GIT_TOKEN ?? process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
|
|
429517
|
-
|
|
429517
|
+
log.info({
|
|
429518
429518
|
GIT_TOKEN: process.env.GIT_TOKEN?.slice(-4) ?? "--",
|
|
429519
429519
|
GITHUB_TOKEN: process.env.GITHUB_TOKEN?.slice(-4) ?? "--",
|
|
429520
429520
|
GH_TOKEN: process.env.GH_TOKEN?.slice(-4) ?? "--"
|
|
429521
|
-
});
|
|
429522
|
-
if (credentials) {
|
|
429523
|
-
log.debug(`using git token *****${credentials.slice(-4)}`);
|
|
429524
|
-
}
|
|
429521
|
+
}, `using git token *****${credentials?.slice(-4)}`);
|
|
429525
429522
|
const path12 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
429526
429523
|
const cred = credentials ? `${credentials}@` : "";
|
|
429527
429524
|
return https || credentials ? `https://${cred}github.com/${path12}.git` : `git@github.com:${path12}.git`;
|
|
@@ -429537,7 +429534,10 @@ async function cloneRepo(opts) {
|
|
|
429537
429534
|
}
|
|
429538
429535
|
} else {
|
|
429539
429536
|
const clone2 = ["clone", getGithubUrl(repo), destDir];
|
|
429540
|
-
log.
|
|
429537
|
+
log.debug(`cloning ${repo} at ${commit} to ${destDir}`);
|
|
429538
|
+
await new Promise((r) => {
|
|
429539
|
+
log.flush(r);
|
|
429540
|
+
});
|
|
429541
429541
|
const { stderr, status, error: error46 } = spawnSync("git", clone2, {
|
|
429542
429542
|
cwd: sandboxDir
|
|
429543
429543
|
});
|
|
@@ -458768,7 +458768,7 @@ function getRenderer(opts) {
|
|
|
458768
458768
|
var package_default = {
|
|
458769
458769
|
name: "@gearbox-protocol/deploy-tools",
|
|
458770
458770
|
description: "Gearbox deploy tools",
|
|
458771
|
-
version: "5.49.
|
|
458771
|
+
version: "5.49.8",
|
|
458772
458772
|
homepage: "https://gearbox.fi",
|
|
458773
458773
|
keywords: [
|
|
458774
458774
|
"gearbox"
|