2021-01-28 22:03:33 +08:00
|
|
|
# Packager's Manual
|
|
|
|
|
2022-04-10 04:29:04 +08:00
|
|
|
The main package of Elvish is `cmd/elvish`, and you can build it like any other
|
2024-02-20 08:07:21 +08:00
|
|
|
Go application.
|
2022-04-10 04:29:04 +08:00
|
|
|
|
2024-02-20 08:07:21 +08:00
|
|
|
## Enhancing version information
|
2021-01-28 22:03:33 +08:00
|
|
|
|
2024-02-20 22:56:54 +08:00
|
|
|
You can set some variables in the `src.elv.sh/pkg/buildinfo` package using
|
|
|
|
linker flags to enhance the Elvish's version information. See the
|
|
|
|
[package's API doc](https://pkg.go.dev/src.elv.sh@master/pkg/buildinfo) for
|
|
|
|
details.
|
|
|
|
|
|
|
|
They don't affect any other aspect of Elvish's behavior, so it's infeasible to
|
|
|
|
pass those linker flags, it's fine to leave them as is.
|
|
|
|
|
|
|
|
**Note**: The names and usage of these variables have changed several time in
|
|
|
|
Elvish's history. If your build script has `-ldflags '-X $symbol=$value'` where
|
|
|
|
`$symbol` is not documented in the linked API doc, those flags no longer do
|
|
|
|
anything and should be removed.
|