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

+fzf #104

Merged
merged 2 commits into from
Jan 14, 2023
Merged

+fzf #104

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
2 changes: 2 additions & 0 deletions projects/github.com/junegunn/fzf/data.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hello
world
33 changes: 33 additions & 0 deletions projects/github.com/junegunn/fzf/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
distributable:
url: https://github.com/junegunn/fzf/archive/refs/tags/{{version}}.tar.gz
strip-components: 1

versions:
github: junegunn/fzf

provides:
- bin/fzf

build:
script: |
go build -v -ldflags="$LDFLAGS"
mkdir -p "{{ prefix }}"/bin
mv fzf "{{ prefix }}"/bin
dependencies:
go.dev: ^1.18
env:
LDFLAGS:
- -s
- -w
- -X main.version={{ version }}
- -X main.revision=tea
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
LDFLAGS:
- -buildmode=pie

test:
script: |
out=$(cat data.txt | fzf -f wld)
test "$out" = "world"