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: MongoDB Compass Community not building #542

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anan474
Copy link

@anan474 anan474 commented Aug 22, 2023

The current recipes try to get latest version from dead link and failed, fixing it by fetching from MongoDB Compass github release instead.

@probonopd
Copy link
Member

probonopd commented Aug 22, 2023

The thing is, how am I supposed to know, from a trust perspective, that https://api.github.com/repos/mongodb-js/ equals https://www.mongodb.com/download-center/compass?

@anan474
Copy link
Author

anan474 commented Aug 23, 2023

Well, sure, how about https://www.mongodb.com/docs/compass/current/page-data/install/page-data.json from XHR request in https://www.mongodb.com/docs/compass/current/install/ page ?

We can get the download link as provided in the download page like this :
curl https://www.mongodb.com/docs/compass/current/page-data/install/page-data.json | jq | grep -E "https.*amd64.deb" | cut -d'"' -f4 | cut -d' ' -f2

which return : https://downloads.mongodb.com/compass/mongodb-compass_1.39.0_amd64.deb

I have build the AppImage with this and it work Ok.

ps. I have checked the mongodb compass repository and while I can put the url pattern for their internal update checking url here I can't find the correct API endpoint url.

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.

2 participants