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

git-annex: readd S3 support. #60667

Closed
wants to merge 4 commits into from
Closed
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
11 changes: 10 additions & 1 deletion Formula/git-annex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ class GitAnnex < Formula
homepage "https://git-annex.branchable.com/"
url "https://hackage.haskell.org/package/git-annex-8.20200810/git-annex-8.20200810.tar.gz"
sha256 "e631c9d52e440f80e9d305c95a078dcae71f200125bca91e49d5b8e2d864c6f3"
license all_of: ["AGPL-3.0-or-later", "BSD-2-Clause", "BSD-3-Clause",
"GPL-2.0-only", "GPL-3.0-or-later", "MIT"]
revision 1
head "git://git-annex.branchable.com/"

livecheck do
Expand All @@ -25,7 +28,8 @@ class GitAnnex < Formula

def install
system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args
system "cabal", "v2-install", *std_cabal_v2_args,
"--flags=+S3"
bin.install_symlink "git-annex" => "git-annex-shell"
end

Expand Down Expand Up @@ -68,6 +72,11 @@ def plist
system "git", "commit", "-a", "-m", "Initial Commit"
assert File.symlink?("Hello.txt")

# make sure the various remotes were built
assert_match shell_output("git annex version | grep 'remote types:'").chomp,
"remote types: git gcrypt p2p S3 bup directory rsync web bittorrent " \
"webdav adb tahoe glacier ddar git-lfs hook external"

# The steps below are necessary to ensure the directory cleanly deletes.
# git-annex guards files in a way that isn't entirely friendly of automatically
# wiping temporary directories in the way `brew test` does at end of execution.
Expand Down