Skip to content
Myr

BUILD.md

This file

Path

BUILD.md

75 lines · 1.9 KiB · Markdown

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 76efddd point at it.

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 1–75why, one step back
1Building fzf
2============34Build instructions5------------------67### Prerequisites89- Go 1.23 or above1011### Using Makefile1213```sh14# Build fzf binary for your platform in target15make1617# Build fzf binary and copy it to bin directory18make install1920# Build fzf binaries and archives for all platforms using goreleaser21make build2223# Publish GitHub release24make release25```2627> [!WARNING]28> Makefile uses git commands to determine the version and the revision29> information for `fzf --version`. So if you're building fzf from an30> environment where its git information is not available, you have to manually31> set `$FZF_VERSION` and `$FZF_REVISION`.32>33> e.g. `FZF_VERSION=0.24.0 FZF_REVISION=tarball make`3435> [!TIP]36> To build fzf with profiling options enabled, set `TAGS=pprof`37>38> ```sh39> TAGS=pprof make clean install40> fzf --profile-cpu /tmp/cpu.pprof --profile-mem /tmp/mem.pprof \41> --profile-block /tmp/block.pprof --profile-mutex /tmp/mutex.pprof42> ```4344Running tests45-------------4647```sh48# Run go unit tests49make test5051# Run integration tests (requires to be on tmux)52make itest5354# Run a single test case55ruby test/runner.rb --name test_something56```5758Third-party libraries used59--------------------------6061- [rivo/uniseg](https://github.com/rivo/uniseg)62 - Licensed under [MIT](https://raw.githubusercontent.com/rivo/uniseg/master/LICENSE.txt)63- [mattn/go-shellwords](https://github.com/mattn/go-shellwords)64 - Licensed under [MIT](http://mattn.mit-license.org)65- [mattn/go-isatty](https://github.com/mattn/go-isatty)66 - Licensed under [MIT](http://mattn.mit-license.org)67- [tcell](https://github.com/gdamore/tcell)68 - Licensed under [Apache License 2.0](https://github.com/gdamore/tcell/blob/master/LICENSE)69- [fastwalk](https://github.com/charlievieth/fastwalk)70 - Licensed under [MIT](https://raw.githubusercontent.com/charlievieth/fastwalk/master/LICENSE)7172License73-------7475[MIT](LICENSE)