Skip to content
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

Automate deps lock updates #96

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/deps-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Update deps-lock.json"
on:
push:
paths:
- "deps.edn"

permissions:
contents: write

jobs:
update-lock:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: cachix/install-nix-action@v25

- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Update deps-lock
run: "nix run github:jlesquembre/clj-nix#deps-lock"
KingMob marked this conversation as resolved.
Show resolved Hide resolved

- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: regenerate deps-lock.json"
file_pattern: "deps-lock.json"
50 changes: 0 additions & 50 deletions deps-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-JezOPysastKFP6SSVze/8ZvwYnbr/uu5PhHvdTc7ea8="
},
{
"mvn-path": "cheshire/cheshire/5.10.0/cheshire-5.10.0.pom",
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-l3PHeIYLYeUXTVeUfJQIGwaJY6aaL7ABmhGpGuN9l8w="
},
{
"mvn-path": "cider/piggieback/0.5.3/piggieback-0.5.3.jar",
"mvn-repo": "https://repo.clojars.org/",
Expand All @@ -101,11 +96,6 @@
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-wRAXPDF8zfKHTFp9swnK7CFt71KGYRnEotO3KFtX0ik="
},
{
"mvn-path": "clj-commons/clj-yaml/0.7.106/clj-yaml-0.7.106.pom",
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-PjA1AYpQJF0qH1GABiXyETqcUo+e9/ilsRKKFLkggOc="
},
{
"mvn-path": "clj-http/clj-http/3.12.1/clj-http-3.12.1.jar",
"mvn-repo": "https://repo.clojars.org/",
Expand Down Expand Up @@ -146,11 +136,6 @@
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-xMtL7gH6hnrFu8XPdgT+g+022A6zpQD9+qkuObEW7nQ="
},
{
"mvn-path": "clojure-msgpack/clojure-msgpack/1.2.1/clojure-msgpack-1.2.1.pom",
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-idvV+CLoAQw/kJd78R2E2DKXecl1eE5jn+7yezZdmRw="
},
{
"mvn-path": "cloverage/cloverage/1.2.4/cloverage-1.2.4.jar",
"mvn-repo": "https://repo.clojars.org/",
Expand Down Expand Up @@ -2231,36 +2216,6 @@
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-g2Bpyp6O48VuSDdiItopEmPxN70/0W2E/dR+/MPyhuI="
},
{
"mvn-path": "org/junit/jupiter/junit-jupiter-api/5.7.1/junit-jupiter-api-5.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-1Vvisj13FDKXB3IEMgey5mpnJK4CvVGStyFuS3AbxiM="
},
{
"mvn-path": "org/junit/jupiter/junit-jupiter-engine/5.7.1/junit-jupiter-engine-5.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-gRF+OjoCDf3W8wkcXseU0stJhAcxrPQogxxWmQEvTLs="
},
{
"mvn-path": "org/junit/jupiter/junit-jupiter-params/5.7.1/junit-jupiter-params-5.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-UIPD5bw9OhjVY6M0fVPi3f35ONdh60TbsL9PQgX+6Sw="
},
{
"mvn-path": "org/junit/jupiter/junit-jupiter/5.7.1/junit-jupiter-5.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-YLUGfK3Mb/tfqS6OJJiKgMbDYEaPJj0mmLKIHI4PfJE="
},
{
"mvn-path": "org/junit/platform/junit-platform-commons/1.7.1/junit-platform-commons-1.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-t8GENMTUsn5yO9SKr5ercK7IwMra1MFTkvvdFEykpQo="
},
{
"mvn-path": "org/junit/platform/junit-platform-engine/1.7.1/junit-platform-engine-1.7.1.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
"hash": "sha256-dmAvWZVKo9+mjjHIDKibb7ouoAG0+wbLUfoV6tfIWjA="
},
{
"mvn-path": "org/kohsuke/pom/14/pom-14.pom",
"mvn-repo": "https://repo.maven.apache.org/maven2/",
Expand Down Expand Up @@ -2456,11 +2411,6 @@
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-SZCg3bNUDE1Ed6GtqP1mP62RSRScmaYGL7/XSKXwGJo="
},
{
"mvn-path": "ring/ring-codec/1.1.2/ring-codec-1.1.2.pom",
"mvn-repo": "https://repo.clojars.org/",
"hash": "sha256-sl/LVYL/wFWem+BnzQXP13SAm5IocZz8HqVojsnKH+c="
},
{
"mvn-path": "ring/ring-codec/1.1.3/ring-codec-1.1.3.jar",
"mvn-repo": "https://repo.clojars.org/",
Expand Down
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@

# a minimal shell for doing a depsLock, that doesn't require an existing deps cache
devShells.depsLock = pkgs.mkShell {
buildInputs = [ pkgs.openjdk21 pkgs.clojure pkgs.babashka ] ++ (basicToolsFn pkgs);
buildInputs = [
pkgs.openjdk21
pkgs.clojure
pkgs.babashka
pkgsWithCljNixOverlay.deps-lock
] ++ (basicToolsFn pkgs);

shellHook = ''
echo "Setting up minimal dev shell..."
Expand Down
Loading