lexical-lsp / lexical

Lexical is a next-generation elixir language server
782 stars 77 forks source link

nix hash out of date #614

Closed skbolton closed 4 months ago

skbolton commented 4 months ago

Looks like #505 is an issue again. I will make an attempt to fix but wanted to call it out.

scohen commented 4 months ago

thanks @skbolton @hauleth please help, is there something I need to do when releasing?

hauleth commented 4 months ago

I will update it ASAP. Maybe we should move the Nix flake to separate repo to make it a little bit easier…

hauleth commented 4 months ago

However I tested with current master and it works for me… @skbolton how do you build?

skbolton commented 4 months ago

Its a flake.nix in one of our projects that I was doing a nix flake update on when I saw the 0.5 release. Let me try again and make sure I didn't do something wrong.

skbolton commented 4 months ago

While we are chatting for this nix stuff to work shouldn't a new commit have been created to update the hash once https://github.com/lexical-lsp/lexical/commit/9f1d6cfcd41fe0cd083270c096b93eb55e69737a happened or does the tooling work differently than that?

skbolton commented 4 months ago

One of my machines just worked so not sure why the other failed. I will look into that and can create another new issue. Also we can close this unless my previous comment is something to worry about.

hauleth commented 4 months ago

@scohen I am preparing script to make it even easier for non-Nix users to update hash. I want also to test if I can use some Docker image to allow updating hash even without Nix installed locally.

hauleth commented 4 months ago

Updated hash in #618 and also added new Mix alias that will use Docker to generate new hash for Nix dependencies, it is me mix nix.hash. As long as you have Docker-compatible runtime available, it should allow you to generate hash without any additional trouble.