5// Build-time parameters set via -ldflags
8// A user may install pug using `go install github.com/opencode-ai/opencode@latest`.
9// without -ldflags, in which case the version above is unset. As a workaround
10// we use the embedded build version that *is* set when using `go install` (and
11// is only set for `go install` and not for `go build`).
13 info, ok := debug.ReadBuildInfo()
18 mainVersion := info.Main.Version
19 if mainVersion == "" || mainVersion == "(devel)" {
20 // bin not built using `go install`
23 // bin built using `go install`
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list