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

Add s5cmd. #18306

Merged
merged 13 commits into from
Apr 1, 2022
39 changes: 39 additions & 0 deletions recipes/s5cmd/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% set name = "s5cmd" %}
{% set version = "1.4.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/peak/s5cmd/archive/refs/tags/v{{ version }}.tar.gz
sha256: b756ac8c69175d04e972c3b4deb6b689986d4260fbe83e32caea52d1061995a0

build:
script: go install -v .
number: 0

requirements:
build:
- {{ compiler('go') }}

test:
commands:
- s5cmd --help

about:
home: https://github.com/peak/{{ name }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a blocker but it would be good to hardcode this instead of using a variable. Sometimes the bot gets tripped up on those.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look, @BastianZim --- it's very appreciated!

Just to check, have you analysed the licenses with https://github.com/google/go-licenses as well? That generally gives a good overview.

That's correct.

This is not a blocker but it would be good to hardcode this instead of using a variable. Sometimes the bot gets tripped up on those.

Will push a fix!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct.

Ok great! Would you recommend it for other packages as well? I'd add it to the docs then because the go licensing is an ongoing discussion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it went pretty smoothly. It required some manual effort of cleaning out the exported data (some lingering files unrelated to the actual license/notice files), but it's definitely much better than manually searching for everything.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that's good to know because for rust we have a tool that just does this during build so we might be able to do it here as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, variables are for things that change. We, hope, that the name of a package doesn't change :-). Using the package name instead of a variable makes the recipe more readable and easier to type too. Thanks for changing it!

summary: 's5cmd is a very fast S3 and local filesystem execution tool.'
description: |
s5cmd is a very fast S3 and local filesystem execution tool.
It comes with support for a multitude of operations including tab completion and wildcard support for files,
which can be very handy for your object storage workflow while working with large number of files.
license: MIT
license_family: MIT
license_file: LICENSE
BastianZim marked this conversation as resolved.
Show resolved Hide resolved
BastianZim marked this conversation as resolved.
Show resolved Hide resolved
doc_url: https://github.com/peak/{{ name }}
dev_url: https://github.com/peak/{{ name }}
BastianZim marked this conversation as resolved.
Show resolved Hide resolved

extra:
recipe-maintainers:
- benjaminrwilson