Skip to content

Commit

Permalink
Hotfix adjust sed expression for flake update hs backend (#4539)
Browse files Browse the repository at this point in the history
The upgrade mechanism for HS backend in `k` was broken by some changes
to the nix flake which modified the syntax for the `haskell-backend`
dependency in `flake.nix`.
This PR fixes the update script and updates HS backend to the latest
version.

* [update-deps.yml] adjusts the `sed` expression
* (by manually running the shell script from the above:)
  - update HS backend to version 0.1.46
  - update `flake.lock` to reflect this update
  • Loading branch information
jberthold authored Jul 22, 2024
1 parent 343c564 commit e49ebb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
cd haskell-backend/src/main/native/haskell-backend
git checkout "${hs_backend_version}"
cd -
sed -i 's! haskell-backend.url = "github:runtimeverification/haskell-backend/.*";! haskell-backend.url = "github:runtimeverification/haskell-backend/'"${hs_backend_version}"'";!' flake.nix
sed -i 's! url = "github:runtimeverification/haskell-backend/.*";! url = "github:runtimeverification/haskell-backend/'"${hs_backend_version}"'";!' flake.nix
if git add flake.nix haskell-backend/src/main/native/haskell-backend && git commit -m "flake.nix, haskell-backend/src/main/native/haskell-backend: update to version ${hs_backend_version}"; then
changed=true
fi
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
inputs = {
llvm-backend.url = "github:runtimeverification/llvm-backend/v0.1.59";
haskell-backend = {
url = "github:runtimeverification/haskell-backend/v0.1.32";
url = "github:runtimeverification/haskell-backend/v0.1.46";
inputs.rv-utils.follows = "llvm-backend/rv-utils";
inputs.nixpkgs.follows = "llvm-backend/nixpkgs";
};
Expand Down

0 comments on commit e49ebb0

Please sign in to comment.