Skip to content

Commit

Permalink
Fix bundle update
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Oct 22, 2024
1 parent 3d7ed14 commit f99b4de
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .bundle/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
---
BUNDLE_FORCE_RUBY_PLATFORM: "true"
deployment: "false"
force_ruby_platform: "true"
BUNDLE_PATH: "vendor/bundle"
BUNDLE_CACHE_ALL: "true"
4 changes: 3 additions & 1 deletion .github/workflows/bundler-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
- name: Update Gem lock file
run: nix develop --command bundle update
- name: Update the hashes in the gemset.nix file
run: nix develop --command bundix --lock
run: nix develop --command bundix
- name: Format the gemset.nix file
run: nix fmt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
Expand Down
5 changes: 3 additions & 2 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ serve:
alias u := update
alias up := update

update: && build test
update:
nix flake update
bundle update
bundix --lock
bundix
nix fmt
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
gems = pkgs.bundlerEnv {
name = "jwillikers-blog";
gemdir = ./.;
extraConfigPaths = [ "${./.}/.ruby-version" ];
};
treefmt.config = {
programs = {
Expand Down Expand Up @@ -137,6 +136,7 @@
[
asciidoctor
bundix
bundler
fish
gems
gems.wrappedRuby
Expand All @@ -149,7 +149,7 @@
(lib.attrValues treefmtEval.config.build.programs)
]
++ pre-commit.enabledPackages;
postShellHook = pre-commit.shellHook;
inherit (pre-commit) shellHook;
};
packages.default = callPackage ./default.nix { inherit gems; };
formatter = treefmtEval.config.build.wrapper;
Expand Down

0 comments on commit f99b4de

Please sign in to comment.