Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build re-compile driver COMPASS-4939 #2341

Merged
merged 3 commits into from Jul 12, 2021
Merged

fix: build re-compile driver COMPASS-4939 #2341

merged 3 commits into from Jul 12, 2021

Conversation

mcasimir
Copy link
Contributor

@mcasimir mcasimir commented Jul 10, 2021

The npm install --production we have in hadron-build won't compile addaleax/node-mongodb-native#71d4c39e5c858f49d10e840df626eca4da653e28.

This is a quick fix that adds an additional npm install for the driver if comes from a fork (just as a safeguard in case we would forget removing it)

package.json Outdated
@@ -27,6 +27,7 @@
"packages-version": "lerna version --allow-branch main --no-push --no-private -m \"chore(release): Bump package versions\"",
"release": "npm run release --workspace mongodb-compass --",
"release-evergreen": "npm run release-evergreen --workspace=mongodb-compass --",
"build-dist-package": "rm -Rf packages/compass/dist && DEBUG='hadron*' HADRON_SKIP_INSTALLER='true' HADRON_PRODUCT='mongodb-compass' HADRON_PRODUCT_NAME='MongoDB Compass' HADRON_DISTRIBUTION='compass' npm run release-evergreen",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rm -rf will remove other builds in dist if you have any, might be better to avoid that maybe? Build process cleans up all the used paths itself anyway IIRC

package.json Outdated Show resolved Hide resolved
@mcasimir mcasimir merged commit 755d602 into main Jul 12, 2021
@mcasimir mcasimir deleted the trybuildwithdriver branch July 12, 2021 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants