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

Fix support for s5cmd 2.2.2 #5069

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class S3BashLib extends BashFunLib<S3BashLib> {
local source=\$1
local target=\$2
local file_name=\$(basename \$1)
local is_dir=\$($cli ls \$source | grep -F "DIR \${file_name}/" -c)
local is_dir=\$($cli ls \$source | grep -F "DIR \${file_name}/" -c)
if [[ \$is_dir == 1 ]]; then
$cli cp "\$source/*" "\$target"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ class S3BashLibTest extends Specification {
local source=$1
local target=$2
local file_name=$(basename $1)
local is_dir=$(s5cmd ls $source | grep -F "DIR ${file_name}/" -c)
local is_dir=$(s5cmd ls $source | grep -F "DIR ${file_name}/" -c)
if [[ $is_dir == 1 ]]; then
s5cmd cp "$source/*" "$target"
else
Expand Down Expand Up @@ -807,7 +807,7 @@ class S3BashLibTest extends Specification {
local source=$1
local target=$2
local file_name=$(basename $1)
local is_dir=$(s5cmd ls $source | grep -F "DIR ${file_name}/" -c)
local is_dir=$(s5cmd ls $source | grep -F "DIR ${file_name}/" -c)
if [[ $is_dir == 1 ]]; then
s5cmd cp "$source/*" "$target"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ import org.slf4j.LoggerFactory
@CompileStatic
class WaveClient {

final static public String DEFAULT_S5CMD_AMD64_URL = 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.0.0.json'
final static public String DEFAULT_S5CMD_ARM64_URL = 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.0.0.json'
final static public String DEFAULT_S5CMD_AMD64_URL = 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.2.2.json'
final static public String DEFAULT_S5CMD_ARM64_URL = 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.2.2.json'

private static Logger log = LoggerFactory.getLogger(WaveClient)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1092,11 +1092,11 @@ class WaveClientTest extends Specification {

where:
ARCH | EXPECTED
'linux/amd64' | 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.0.0.json'
'linux/x86_64' | 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.0.0.json'
'arm64' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.0.0.json'
'linux/arm64' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.0.0.json'
'linux/arm64/v8' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.0.0.json'
'linux/amd64' | 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.2.2.json'
'linux/x86_64' | 'https://nf-xpack.seqera.io/s5cmd/linux_amd64_2.2.2.json'
'arm64' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.2.2.json'
'linux/arm64' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.2.2.json'
'linux/arm64/v8' | 'https://nf-xpack.seqera.io/s5cmd/linux_arm64_2.2.2.json'
}

def 'should configure custom s5cmd' () {
Expand Down