Skip to content

Conversation

@PJUllrich
Copy link
Contributor

@PJUllrich PJUllrich commented Nov 11, 2025

Should close #42

Instead of downloading the nightly build to always the same folder ~/Library/Application\ Support/Zed/extensions/work/elixir/expert-nightly which doesn't overwrite the existing installation since the -nightly suffix never changes, I download the file to a tmp folder, create its SHA256 checksum, and use the checksum as a folder name - and therefore as a "version" which gets overwritten the next time a nightly release is pushed.

I have no clue whether that's the way to go, but it'd on my machine (well, the latest version of the nightly build didn't start, but that has nothing to do with this PR since it also fails on the official Elixir extension)

@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @PJUllrich on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@PJUllrich
Copy link
Contributor Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @PJUllrich on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

The cla-bot has been summoned, and re-checked this pull request!

@PJUllrich
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Nov 11, 2025
@cla-bot
Copy link

cla-bot bot commented Nov 11, 2025

The cla-bot has been summoned, and re-checked this pull request!

@PJUllrich
Copy link
Contributor Author

Just as an FYI: instead of pulling in the SHA2 dependency, we could also take the checksum from the expert_checksums.txt file but that'd require parsing that text file. But just a thought!

@PJUllrich
Copy link
Contributor Author

Implemented fetching the checksum from the expert_checksums.txt file instead of downloading the expert binary and hashing it manually.

@PJUllrich PJUllrich closed this Nov 12, 2025
MrSubidubi pushed a commit that referenced this pull request Nov 17, 2025
Should close #42

Instead of downloading the nightly build to always the same folder
`~/Library/Application\
Support/Zed/extensions/work/elixir/expert-nightly` which doesn't
overwrite the existing installation since the `-nightly` suffix never
changes, I use the checksum from the `expert_checksums.txt` file as a
folder name - and therefore as a "version" which gets overwritten the
next time a nightly release is pushed.

I closed the previous PR
#43 to move this to a
feature branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expert language server doesn't update to latest nightly builds

1 participant