Skip to content

gitbutler: 0.12.16 -> 0.14.4 - #355366

Merged
Scrumplex merged 2 commits into
NixOS:masterfrom
getchoo-contrib:pkgs/gitbutler/0.13.13
Dec 24, 2024
Merged

Scrumplex merged 2 commits into
NixOS:masterfrom
getchoo-contrib:pkgs/gitbutler/0.13.13

Conversation

@getchoo

@getchoo getchoo commented Nov 12, 2024 •

Copy link
Copy Markdown
Member

Closes #335875
Fixes #355157
Supersedes #347819
Part of #354146

Changelog: https://github.com/gitbutlerapp/gitbutler/releases/tag/release%2F0.14.1
Diff: gitbutlerapp/gitbutler@release/0.12.16...release/0.14.1

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg
ofborg Bot requested a review from techknowlogick November 12, 2024 18:39
@ofborg ofborg Bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 12, 2024
@techknowlogick

Copy link
Copy Markdown
Member

Thanks for figuring this one out <3

Will run this through nixpkgs-review and test it out soon.

@techknowlogick

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 355366


aarch64-darwin

❌ 1 package failed to build:
  • gitbutler

@techknowlogick

Copy link
Copy Markdown
Member
       >   = note: ld: warning: directory not found for option '-L/private/tmp/nix-build-gitbutler-0.13.13.drv-0/source/target/aarch64-apple-darwin/release/build/libz-ng-sys-bff808f92c624259/out/lib64'
       >           ld: library not found for -lcurl
       >           clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
       >
       >
       > error: could not compile `gitbutler-tauri` (lib) due to 1 previous error

@getchoo
getchoo force-pushed the pkgs/gitbutler/0.13.13 branch from bd462ac to 81521db Compare November 12, 2024 23:17
@getchoo

getchoo commented Nov 12, 2024

Copy link
Copy Markdown
Member Author

Thanks for catching that. My old MBA takes ages to build this 😆

@sarahec sarahec added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label Nov 13, 2024
@sarahec

sarahec commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

Result of nixpkgs-review pr 355366 run on aarch64-darwin 1

1 package failed to build:
  • gitbutler

@sarahec

sarahec commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

Build error (aarch64-darwin):

       > Finished cargoCheckHook
       > checkPhase completed in 1 minutes 45 seconds
       > Running phase: glibPreInstallPhase
       > Running phase: glibPreInstallPhase
       > Running phase: installPhase
       > Executing tauriInstallHook
       > mv: cannot stat '/nix/store/4wxc38ls8z07gfrmiqq9zw81zplk740g-gitbutler-0.13.13/Applications/GitButler.app/Contents/MacOS/GitButler': No such file or directory

@getchoo
getchoo force-pushed the pkgs/gitbutler/0.13.13 branch from 81521db to 297e80f Compare November 13, 2024 01:37
@getchoo

getchoo commented Nov 13, 2024

Copy link
Copy Markdown
Member Author

Ah, binary name must have changed there too. Thanks so much :)

@sarahec

sarahec commented Nov 13, 2024

Copy link
Copy Markdown
Contributor

Result of nixpkgs-review pr 355366 run on aarch64-darwin 1

1 package built:
  • gitbutler

@techknowlogick

Copy link
Copy Markdown
Member

Thanks for catching that. My old MBA takes ages to build this 😆

No worries, a bit of warmth in these colder months 😆

Sorry for just pasting the build error above without any context; I had to rush off and couldn't provide more details, but I figured what I had would be enough, and if not, then at least it'd be a starting point until I could get back and give more.

Thanks again for figuring out what was going on with the rust stuff. And thank you, @sarahec, for providing additional Darwin build information.

@techknowlogick techknowlogick added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 13, 2024
@getchoo

getchoo commented Nov 13, 2024

Copy link
Copy Markdown
Member Author

Result of nixpkgs-review pr 355366 run on aarch64-linux 1

1 package built:
  • gitbutler

@ofborg
ofborg Bot requested a review from techknowlogick November 13, 2024 14:27
@getchoo
getchoo force-pushed the pkgs/gitbutler/0.13.13 branch from 297e80f to 0ca309b Compare November 15, 2024 02:33
@getchoo getchoo removed 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 15, 2024
@getchoo
getchoo force-pushed the pkgs/gitbutler/0.13.13 branch from 0ca309b to a42b32c Compare November 15, 2024 23:42
@getchoo

getchoo commented Nov 15, 2024 •

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 355366


x86_64-linux

✅ 1 package built:
  • gitbutler

x86_64-darwin

✅ 1 package built:
  • gitbutler

aarch64-darwin

✅ 1 package built:
  • gitbutler

aarch64-linux

✅ 1 package built:
  • gitbutler

@getchoo
getchoo marked this pull request as draft December 4, 2024 02:11
@getchoo

getchoo commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

The app now launches and doesn't try to update, but instead shows an error about the list of endpoints being empty. Properly patching this out will probably take me a bit, as they have actually rolled their own updater based on Tauri's APIs

Let me know if there is interest in merging this in its current form, though. Might be worth unbreaking the package and bringing it to a supported version with a warning rather than waiting

@github-actions github-actions Bot removed 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 4, 2024
@ofborg ofborg Bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 4, 2024
@phsb5321

phsb5321 commented Dec 4, 2024

Copy link
Copy Markdown

Hey, is it possible to use the package derivation before it is merged? Sorry, I am really new in NixOS.

@getchoo

getchoo commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

You can checkout this branch of Nixpkgs only for this package with something like the following

{ pkgs, ... }:

let
  nixpkgs-gitbutler = fetchTarball "https://github.com/NixOS/nixpkgs/archive/6b2bd7588dfb58281f66c8837e5e5ed92d04862f.tar.gz";
  gitbutlerPkgs = import nixpkgs-gitbutler {
    inherit (pkgs.stdenv.hostPlatform) system;
    inherit (pkgs) config overlays;
  };
in

{
  environment.systemPackages = [ gitbutlerPkgs.gitbutler ];
}

If you're using Flakes, nixpkgs-gitbutler should be an input rather than using fetchTarball (though you could still use this in a Flake by passing --impure)

@techknowlogick

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 355366


aarch64-darwin

✅ 1 package built:
  • gitbutler

@techknowlogick

Copy link
Copy Markdown
Member

I'm fine with merging it as-is with the updater warning.

@phsb5321

phsb5321 commented Dec 5, 2024

Copy link
Copy Markdown

You can checkout this branch of Nixpkgs only for this package with something like the following

{ pkgs, ... }:

let
  nixpkgs-gitbutler = fetchTarball "https://github.com/NixOS/nixpkgs/archive/6b2bd7588dfb58281f66c8837e5e5ed92d04862f.tar.gz";
  gitbutlerPkgs = import nixpkgs-gitbutler {
    inherit (pkgs.stdenv.hostPlatform) system;
    inherit (pkgs) config overlays;
  };
in

{
  environment.systemPackages = [ gitbutlerPkgs.gitbutler ];
}

If you're using Flakes, nixpkgs-gitbutler should be an input rather than using fetchTarball (though you could still use this in a Flake by passing --impure)


👋 Thank you for helping me with the Gitbutler setup! That was super helpful.

I have a follow-up question - how did you get/generate the Flake URL (github:nixos/nixpkgs/6b2bd7588dfb58281f66c8837e5e5ed92d04862f) from the PR? I'd love to learn how to do this myself for future PRs 🙏

@Scrumplex

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 355366


x86_64-linux

✅ 1 package built:
  • gitbutler

x86_64-darwin

✅ 1 package built:
  • gitbutler

aarch64-darwin

✅ 1 package built:
  • gitbutler

@Scrumplex

Scrumplex commented Dec 5, 2024 •

Copy link
Copy Markdown
Member

IMO the updater can stay for now. Maybe we can ask upstream to add a simple way to disable it.


I have a follow-up question - how did you get/generate the Flake URL (github:nixos/nixpkgs/6b2bd7588dfb58281f66c8837e5e5ed92d04862f) from the PR? I'd love to learn how to do this myself for future PRs 🙏

@phsb5321 It boils down to github:NixOS/nixpkgs/<last commit of this PR>. So just head to the "Commits" tab and copy the full sha1 hash of the last commit (in this case 6b2bd7588dfb58281f66c8837e5e5ed92d04862f)

@getchoo
getchoo marked this pull request as ready for review December 5, 2024 23:45
@getchoo

getchoo commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

If everyone else is good with the warning, then so am I :D

Feel free to merge

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 10, 2024
@getchoo
getchoo force-pushed the pkgs/gitbutler/0.13.13 branch from 6b2bd75 to f7dbf97 Compare December 24, 2024 05:35
@getchoo getchoo changed the title gitbutler: 0.12.16 -> 0.14.1 gitbutler: 0.12.16 -> 0.14.4 Dec 24, 2024
@getchoo getchoo removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 24, 2024
@github-actions github-actions Bot removed 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 24, 2024
@Scrumplex

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 355366


x86_64-linux

✅ 1 package built:
  • gitbutler

x86_64-darwin

✅ 1 package built:
  • gitbutler

aarch64-darwin

✅ 1 package built:
  • gitbutler

@Scrumplex
Scrumplex merged commit 38c9288 into NixOS:master Dec 24, 2024
@nixpkgs-ci

nixpkgs-ci Bot commented Dec 24, 2024

Copy link
Copy Markdown
Contributor

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-355366-to-release-24.11 origin/release-24.11
cd .worktree/backport-355366-to-release-24.11
git switch --create backport-355366-to-release-24.11
git cherry-pick -x 645b40cef526c13be7cb80545a11a97245206db9 f7dbf97ea5f63a2eec07e762246d79efa00fe1ec

@getchoo
getchoo deleted the pkgs/gitbutler/0.13.13 branch December 26, 2024 05:33
@jtojnar jtojnar mentioned this pull request Dec 29, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: gitbutler Update request: gitbutler 0.12.16 → 0.12.20

8 participants