Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 643ffcb

Browse files
committed
Added fd #4271
1 parent ecbd829 commit 643ffcb

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,17 @@
15151515
"depNameTemplate": "falcosecurity/falcosidekick",
15161516
"datasourceTemplate": "github-releases"
15171517
},
1518+
{
1519+
"fileMatch": [
1520+
"^tools/fd/manifest.yaml$"
1521+
],
1522+
"matchStrings": [
1523+
"version: \"?(?<currentValue>.*?)\"?\\n"
1524+
],
1525+
"depNameTemplate": "sharkdp/fd",
1526+
"datasourceTemplate": "github-releases",
1527+
"extractVersionTemplate": "^v(?<version>.+?)$"
1528+
},
15181529
{
15191530
"fileMatch": [
15201531
"^tools/figlet/manifest.yaml$"

tools/fd/Dockerfile.template

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
case "${alt_arch}" in
10+
amd64)
11+
export suffix="musl"
12+
;;
13+
arm64)
14+
export suffix="gnu"
15+
;;
16+
*)
17+
echo "ERROR: Unsupported architecture (${alt_arch})."
18+
exit 1
19+
;;
20+
esac
21+
curl --silent --location --fail "https://github.com/sharkdp/fd/releases/download/v${version}/fd-v${version}-${arch}-unknown-linux-${suffix}.tar.gz" \
22+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner \
23+
"fd-v${version}-${arch}-unknown-linux-${suffix}/fd" \
24+
"fd-v${version}-${arch}-unknown-linux-${suffix}/fd.1" \
25+
"fd-v${version}-${arch}-unknown-linux-${suffix}/autocomplete"
26+
27+
mv "${prefix}${target}/bin/fd.1" "${prefix}${target}/share/man/man1/"
28+
29+
mv "${prefix}${target}/bin/autocomplete/fd.bash" "${prefix}${target}/share/bash-completion/completions/fd"
30+
mv "${prefix}${target}/bin/autocomplete/fd.fish" "${prefix}${target}/share/fish/vendor_completions.d/fd.fish"
31+
mv "${prefix}${target}/bin/autocomplete/_fd" "${prefix}${target}/share/zsh/vendor-completions/_fd"
32+
rm -rf "${prefix}${target}/bin/autocomplete"
33+
EOF

tools/fd/manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: fd
2+
version: "8.7.0"
3+
check: ${binary} --version | cut -d' ' -f2
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/operations
9+
- lang/rust
10+
- type/cli
11+
homepage: https://github.com/sharkdp/fd
12+
description: Simple, fast and user-friendly alternative to 'find'
13+
renovate:
14+
datasource: github-releases
15+
package: sharkdp/fd
16+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)