-
Notifications
You must be signed in to change notification settings - Fork 29
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
Bash 0.19 no longer builds in Nix #734
Comments
|
Builds but fails to test, but also these deps still need to be updated |
--- a/Cargo.lock 2024-09-10 11:33:28.428829334 +0700
+++ b/Cargo.lock 2024-09-10 11:17:45.106205987 +0700
@@ -1382,8 +1382,8 @@
[[package]]
name = "tree-sitter-bash"
-version = "0.19.0"
-source = "git+https://github.com/tree-sitter/tree-sitter-bash?rev=1b0321ee85701d5036c334a6f04761cdc672e64c#1b0321ee85701d5036c334a6f04761cdc672e64c"
+version = "0.20.0"
+source = "git+https://github.com/tree-sitter/tree-sitter-bash?rev=c0f5797a728fc4ebd78a8b0e436b1494a8ab5f51#c0f5797a728fc4ebd78a8b0e436b1494a8ab5f51"
dependencies = [
"cc",
"tree-sitter",
--- a/Cargo.toml 2024-09-10 11:42:13.451688919 +0700
+++ b/Cargo.toml 2024-09-10 11:42:37.337239550 +0700
@@ -71,7 +71,7 @@
tokio-test = "0.4"
toml = "0.8"
tree-sitter = "=0.20.10"
-tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "1b0321ee85701d5036c334a6f04761cdc672e64c" }
+tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "c0f5797a728fc4ebd78a8b0e436b1494a8ab5f51" }
tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css.git", rev = "02b4ee757654b7d54fe35352fd8e53a8a4385d42" }
tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json.git", rev = "3b129203f4b72d532f58e72c5310c0a7db3b8e6d" }
tree-sitter-nickel = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "43433d8477b24cd13acaac20a66deda49b7e2547" } |
--- a/Cargo.toml 2024-09-10 11:42:13.451688919 +0700
+++ b/Cargo.toml 2024-09-10 11:42:37.337239550 +0700
@@ -71,7 +71,7 @@
tokio-test = "0.4"
toml = "0.8"
tree-sitter = "=0.20.10"
-tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "1b0321ee85701d5036c334a6f04761cdc672e64c" }
+tree-sitter-bash = { git = "https://github.com/tree-sitter/tree-sitter-bash", rev = "b2959f8be16fa1e2ee88a560074527fdef05b328" }
tree-sitter-css = { git = "https://github.com/tree-sitter/tree-sitter-css.git", rev = "02b4ee757654b7d54fe35352fd8e53a8a4385d42" }
tree-sitter-json = { git = "https://github.com/tree-sitter/tree-sitter-json.git", rev = "3b129203f4b72d532f58e72c5310c0a7db3b8e6d" }
tree-sitter-nickel = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "43433d8477b24cd13acaac20a66deda49b7e2547" }
--- a/Cargo.lock 2024-09-10 11:56:50.347199224 +0700
+++ b/Cargo.lock 2024-09-10 11:54:37.112528333 +0700
@@ -1383,7 +1383,7 @@
[[package]]
name = "tree-sitter-bash"
version = "0.19.0"
-source = "git+https://github.com/tree-sitter/tree-sitter-bash?rev=1b0321ee85701d5036c334a6f04761cdc672e64c#1b0321ee85701d5036c334a6f04761cdc672e64c"
+source = "git+https://github.com/tree-sitter/tree-sitter-bash?rev=b2959f8be16fa1e2ee88a560074527fdef05b328#b2959f8be16fa1e2ee88a560074527fdef05b328"
dependencies = [
"cc",
"tree-sitter", |
Parses but fails test |
This has been a recurring theme with the bash tree-sitter grammar depending on bash itself. The lockfile hasn't been updated in ages because the bash grammar changed significantly, and we haven't had the time to update our queries. The main issue regarding the current build failure is here: #702, I'll leave this issue open for the valuable regarding the bash update, but I think all further discussion about the savannah issue should go there. Thank you! |
A messy update to say the least. Topiary 0.4.0 was released a while back, but the update was non-trivial. Not only did a bunch of Git outputHashes SHAs need to get updated & a new, revendored Cargo.lock, but a Git submodule in tree-sitter-bash, which is by Topiary referenced at an arbitrary point in 0.19.0’s history, is now no longer up & needed patching to remove it. To circumvent needing to learn how patch to a Cargo dependency for this, I have forked the tree-sitter-bash project @ Topiary 0.4.0’s commit + cherry-picked the b2959f8be16fa1e2ee88a560074527fdef05b328 patch which removes the submodule dependencies (to check that this is indeed the case, you may check the commit graph <https://codeberg.org/toastal/tree-sitter-bash/graph>). I also opened an upstream issue with Topiary <tweag/topiary#734> to hopefully in the future start keeping these grammar queries updated more often than once every 3 years. Co-Authored-By: Avi Dessauer <[email protected]>
Describe the bug
Submodule is gone so it doesn’t clone correctly
To Reproduce
Try to build 0.4.0 from Nixpkgs (doesn’t yet exist… trying to update)
Expected behavior
Newer versions seem to at least build, but why hasn’t the lockfile been updated in ages?
Environment
Additional context
Add any other context about the problem here.
1
Footnotes
Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute. ↩
The text was updated successfully, but these errors were encountered: