-
Notifications
You must be signed in to change notification settings - Fork 4
feat: prepare for renaming to postgres-language-server
#52
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
base: main
Are you sure you want to change the base?
Conversation
postgres-language-server
psteinroe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can get rid of the constants and do it dynamically? we dont have to commit to certain versions then…
src/downloader.ts
Outdated
| ); | ||
|
|
||
| const url = newNameAvailable | ||
| ? `https://github.com/supabase-community/postgres_lsp/releases/download/${version}/${CONSTANTS.newPlatformSpecificReleasedAssetName}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the repo name is postgres-language-server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, you're right. (JFYI the old link also works)
src/downloader.ts
Outdated
| const url = `https://github.com/supabase-community/postgres_lsp/releases/download/${version}/${CONSTANTS.platformSpecificReleasedAssetName}`; | ||
| const newNameAvailable = semver.gte( | ||
| version, | ||
| EARLIEST_CROSS_PUBLISHING_RELEASE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we run a HEAD request and really just try if the new binary is there, else use the old one? not a huge fan of the constant
great idea! I made it a bit simpler. We'll now check if the new binary is available and if so add a little "please use the other binary name" to the existing "your postgrestools version is outdated" message. Note: Users that are on the most recent version will only get this message in about 3 versions. I'll test this once the new assets are released on npm etc. and then I'll release it 👍🏻 |
No description provided.