From 0543ca804721f2f301abd0fab666f9b8d77c0408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20=C4=B0brahim=20G=C3=BCng=C3=B6r?= Date: Fri, 8 Apr 2022 13:26:23 +0300 Subject: [PATCH] goreleaser: move formula to `github.com/peak/homebrew-tap` repo (#429) This change will affect how users install from homebrew. Previously, it was: brew tap peak/s5cmd https://github.com/peak/s5cmd brew install s5cmd Now it'll be: brew install peak/tap/s5cmd Fixes #356 --- .github/workflows/goreleaser.yml | 2 +- .goreleaser.yml | 6 +++-- CHANGELOG.md | 16 +++++++----- Formula/s5cmd.rb | 44 -------------------------------- README.md | 3 +-- 5 files changed, 15 insertions(+), 56 deletions(-) delete mode 100644 Formula/s5cmd.rb diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 54a560928..ce6bcd575 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -24,4 +24,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index de54c2b0e..282524f96 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -50,10 +50,12 @@ changelog: brews: - tap: owner: peak - name: s5cmd + name: homebrew-tap folder: Formula - homepage: https://github.com/peak/s5cmd + name: s5cmd description: Parallel S3 and local filesystem execution tool + homepage: https://github.com/peak/s5cmd + license: MIT test: | system "#{bin}/s5cmd version" diff --git a/CHANGELOG.md b/CHANGELOG.md index 434791279..4232db1d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,18 @@ #### Breaking changes - Dropped inline comment feature for `run` command. Previously s5cmd supported a command with an inline comment like `ls s3://bucket/object.gz # inline comment`. ([#309](https://github.com/peak/s5cmd/issues/309)) +- Changed homebrew installation command on macOS. Users can install s5cmd via `brew install peak/tap/s5cmd`. ([#356](https://github.com/peak/s5cmd/issues/356)) #### Features -- Added `--ignore-glacier-warnings` flag to `cp`, `mv` and `select` commands. ([#346](https://github.com/peak/s5cmd/issues/346)) -- Added `--force-glacier-transfer` flag to `select` command. ([#346](https://github.com/peak/s5cmd/issues/346)) +- Added `sync` command to synchronize two given buckets, prefixes, or objects. ([#3](https://github.com/peak/s5cmd/issues/3)) - Added AWS Single Sign-On (SSO) profiles support. ([#385](https://github.com/peak/s5cmd/issues/385)) -- Added `--use-list-objects-v1` flag to force using S3 ListObjects API instead of ListObjectsV2 API. ([#405](https://github.com/peak/s5cmd/issues/405)) -- Added `--request-payer` flag to include `x-amz-request-payer` in header while sending GET, POST and HEAD requests. ([#297](https://github.com/peak/s5cmd/issues/297)) +- Added `--force-glacier-transfer` flag to `select` command. ([#346](https://github.com/peak/s5cmd/issues/346)) +- Added `--ignore-glacier-warnings` flag to `cp`, `mv` and `select` commands. ([#346](https://github.com/peak/s5cmd/issues/346)) +- Added `--request-payer` flag to include `x-amz-request-payer` in header while sending GET, POST and HEAD requests. ([#297](https://github.com/peak/s5cmd/issues/297)) [@Kirill888](https://github.com/Kirill888) +- Added `--use-list-objects-v1` flag to force using S3 ListObjects API instead of ListObjectsV2 API. ([#405](https://github.com/peak/s5cmd/issues/405)) [@greenpau](https://github.com/greenpau) #### Improvements -- Upgrade minimum required Go version to 1.16. +- Upgraded minimum required Go version to 1.16. #### Bugfixes - Fixed a bug about precedence of region detection, which auto region detection would always override region defined in environment or profile. ([#325](https://github.com/peak/s5cmd/issues/325)) @@ -26,7 +28,7 @@ #### Features - Added `select` command. It allows to select JSON records from objects using SQL expressions. ([#299](https://github.com/peak/s5cmd/issues/299)) [@skeggse](https://github.com/skeggse) -- Added `rb` command to remove buckets. ([#303](https://github.com/peak/s5cmd/issues/303)). +- Added `rb` command to remove buckets. ([#303](https://github.com/peak/s5cmd/issues/303)) - Added `--exclude` flag to `cp`, `rm`, `ls`, `du` and `select` commands. This flag allows users to exclude objects with given pattern. ([#266](https://github.com/peak/s5cmd/issues/266)) - Added `--raw` flag to `cp` and `rm` commands. It disables the wildcard operations. It is useful when an object contains glob characters which interfers with glob expansion logic. ([#235](https://github.com/peak/s5cmd/issues/235)) - Added `--cache-control` and `--expires` flags to `cp` and `mv` commands. It adds support for setting cache control and expires header to S3 objects. ([#318](https://github.com/peak/s5cmd/pull/318)) [@tombokombo](https://github.com/tombokombo) @@ -185,7 +187,7 @@ This is a major release with many breaking changes. #### Improvements -- Pre-compiled binaries are provided on [releases page](https://github.com/peak/s5cmd/releases). ([#21](https://github.com/peak/s5cmd/issues/21)) +- Pre-compiled binaries are provided on [releases page](https://github.com/peak/s5cmd/releases) ([#21](https://github.com/peak/s5cmd/issues/21)) - AWS Go SDK is updated to support IAM role for service accounts. ([#32](https://github.com/peak/s5cmd/issues/32)) - For copy/move operations, `s5cmd` now creates destination directory if missing. - Increase the soft limit of open files to 1000 and exits immediately when it encounters `too many open files` error. ([#52](https://github.com/peak/s5cmd/issues/52)) diff --git a/Formula/s5cmd.rb b/Formula/s5cmd.rb deleted file mode 100644 index d4a60b720..000000000 --- a/Formula/s5cmd.rb +++ /dev/null @@ -1,44 +0,0 @@ -# typed: false -# frozen_string_literal: true - -# This file was generated by GoReleaser. DO NOT EDIT. -class S5cmd < Formula - desc "Parallel S3 and local filesystem execution tool" - homepage "https://github.com/peak/s5cmd" - version "1.4.0" - bottle :unneeded - - on_macos do - if Hardware::CPU.intel? - url "https://github.com/peak/s5cmd/releases/download/v1.4.0/s5cmd_1.4.0_macOS-64bit.tar.gz" - sha256 "3792eb2ea7a9044d001c704126d12cfd041d132427240c28001418e9b47e83dc" - end - if Hardware::CPU.arm? - url "https://github.com/peak/s5cmd/releases/download/v1.4.0/s5cmd_1.4.0_macOS-arm64.tar.gz" - sha256 "1d597a80726042c9223ecd3fa9a0d99fc1a19a6ecb820c99419d0cc1f90bc3ef" - end - end - - on_linux do - if Hardware::CPU.intel? - url "https://github.com/peak/s5cmd/releases/download/v1.4.0/s5cmd_1.4.0_Linux-64bit.tar.gz" - sha256 "b62c0600d8dc75974bb7ba6a0cba870870cdd295b63ab6aa42b9713c2d634be5" - end - if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://github.com/peak/s5cmd/releases/download/v1.4.0/s5cmd_1.4.0_Linux-armv6.tar.gz" - sha256 "0edb520347dbb52f10b7b42b034c831bdb7913cd9010cc2be30eaee84dc5ff13" - end - if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://github.com/peak/s5cmd/releases/download/v1.4.0/s5cmd_1.4.0_Linux-arm64.tar.gz" - sha256 "9207f5cb8fce5367bc532dbfc30ef51097e85522e8e9e617c36bc21c3e6ea048" - end - end - - def install - bin.install "s5cmd" - end - - test do - system "#{bin}/s5cmd version" - end -end diff --git a/README.md b/README.md index 463f88548..6fefcf85c 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,7 @@ binaries for Linux, macOS and Windows. For macOS, a [homebrew](https://brew.sh) tap is provided: - brew tap peak/s5cmd https://github.com/peak/s5cmd - brew install s5cmd + brew install peak/tap/s5cmd ### MacPorts