Install this version:
emerge -a =dev-db/go-sqlcmd-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-db/go-sqlcmd-9999
Or alternatively:
emerge --autounmask-write -a =dev-db/go-sqlcmd-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 go-module
DESCRIPTION="CLI for SQL Server and Azure SQL"
HOMEPAGE="https://github.com/microsoft/go-sqlcmd"
EGIT_REPO_URI="https://github.com/microsoft/${PN}.git"
LICENSE="MIT"
SLOT="0"
RESTRICT="test" # needs mssql
src_compile() {
LDFLAGS="-w -X main.version=${PV}"
ego build -ldflags "${LDFLAGS}" -o go-sqlcmd ./cmd/modern
}
src_test() {
ego test -work ./...
}
src_install() {
einstalldocs
dobin go-sqlcmd
}