Skip to content

Commit 1360e6a

Browse files
committed
try and figure out why the tarball contains itself
1 parent fa95c3c commit 1360e6a

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.evergreen/verify-artifacts.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,23 @@ if [ "$IS_WINDOWS" = true ]; then
6767
verify_using_powershell $WINDOWS_EXE_NAME
6868
verify_using_powershell $WINDOWS_MSI_NAME
6969
echo "Skipping verification for Windows artifacts using gpg: $WINDOWS_ZIP_NAME, $WINDOWS_NUPKG_NAME"
70-
npm run -w mongodb-compass verify-package-contents
70+
DEBUG=compass* npm run -w mongodb-compass verify-package-contents
7171

7272
elif [ "$IS_UBUNTU" = true ]; then
7373
setup_gpg
7474
verify_using_gpg $LINUX_DEB_NAME
7575
verify_using_gpg $LINUX_TAR_NAME
76-
npm run -w mongodb-compass verify-package-contents
76+
DEBUG=compass* npm run -w mongodb-compass verify-package-contents
7777
elif [ "$IS_RHEL" = true ]; then
7878
setup_gpg
7979
verify_using_rpm $RHEL_RPM_NAME
8080
verify_using_gpg $RHEL_TAR_NAME
81-
npm run -w mongodb-compass verify-package-contents
81+
DEBUG=compass* npm run -w mongodb-compass verify-package-contents
8282
elif [ "$IS_OSX" = true ]; then
8383
setup_gpg
8484
verify_using_gpg $OSX_ZIP_NAME
8585
verify_using_codesign $OSX_DMG_NAME
86-
npm run -w mongodb-compass verify-package-contents
86+
DEBUG=compass* npm run -w mongodb-compass verify-package-contents
8787
else
8888
echo "Unknown OS, failed to verify file signing"
8989
exit 1

packages/compass/scripts/verify-package-contents.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ function extractArchive(artifactsDir: string, destinationPath: string): Kind {
6060
}
6161
}
6262

63-
// eslint-disable-next-line @typescript-eslint/require-await
64-
async function run() {
63+
function run() {
6564
const artifactsDir = path.resolve(__dirname, '..', 'dist');
6665
const destinationPath = fs.mkdtempSync('compass-package-');
6766
const fixturePath = path.resolve(__dirname, 'fixtures');
@@ -83,11 +82,4 @@ async function run() {
8382
}
8483
}
8584

86-
run()
87-
.then(function () {
88-
debug('done');
89-
})
90-
.catch(function (err) {
91-
debug(err.stack);
92-
process.exitCode = 1;
93-
});
85+
run();

packages/hadron-build/lib/target.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ class Target {
780780
this.dest(this.app_archive_name)
781781
);
782782

783+
debug('contents of ', this.appPath, 'to be written to', this.dest(this.app_archive_name), fs.readdirSync(this.appPath));
783784
return tarGz(this.appPath, this.dest(this.app_archive_name)).then(() => {
784785
return sign(this.dest(this.app_archive_name));
785786
});

0 commit comments

Comments
 (0)