Skip to content

Commit

Permalink
Merge pull request #2103 from tweag/cb/update-rules_sh
Browse files Browse the repository at this point in the history
Upgrade rules_sh to 0.4.0
  • Loading branch information
mergify[bot] committed Jan 9, 2024
2 parents d18915c + bb14958 commit 48b0392
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_sh",
version = "0.3.0",
version = "0.4.0",
)

ghc_version = use_extension("//extensions:ghc_version.bzl", "ghc_default_version")
Expand Down
11 changes: 8 additions & 3 deletions haskell/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ load(":private/ghc_ci.bzl", "ghc_default_version")
_rules_nixpkgs_version = "0.10.0"
_rules_nixpkgs_sha256 = "980edfceef2e59e1122d9be6c52413bc298435f0a3d452532b8a48d7562ffd67"

_rules_sh_version = "v0.3.0"
_rules_sh_sha256 = "d668bb32f112ead69c58bde2cae62f6b8acefe759a8c95a2d80ff6a85af5ac5e"
_rules_sh_version = "v0.4.0"
_rules_sh_sha256 = "3243af3fcb3768633fd39f3654de773e5fb61471a2fae5762a1653c22c412d2c"

def rules_haskell_dependencies_bzlmod():
"""Provide rules_haskell dependencies which are not available as bzlmod modules."""
Expand Down Expand Up @@ -66,7 +66,12 @@ def rules_haskell_dependencies():
maybe(
http_archive,
name = "rules_sh",
urls = ["https://github.com/tweag/rules_sh/archive/%s.tar.gz" % _rules_sh_version],
urls = [
"https://github.com/tweag/rules_sh/releases/download/{TAG}/rules_sh-{VERSION}.tar.gz".format(
TAG = _rules_sh_version,
VERSION = _rules_sh_version.lstrip("v"),
),
],
sha256 = _rules_sh_sha256,
strip_prefix = "rules_sh-%s" % _rules_sh_version.lstrip("v"),
)
Expand Down
2 changes: 1 addition & 1 deletion rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_sh",
version = "0.3.0",
version = "0.4.0",
)
bazel_dep(
name = "bazel_skylib",
Expand Down

0 comments on commit 48b0392

Please sign in to comment.