1 Commits

Author SHA1 Message Date
5f55a75aed chore(deps): update dependency golangci/golangci-lint to v2.3.1 2025-08-12 07:14:43 +00:00
3 changed files with 5 additions and 6 deletions

View File

@ -26,4 +26,4 @@ jobs:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- uses: golangci/golangci-lint-action@v8.0.0 - uses: golangci/golangci-lint-action@v8.0.0
with: with:
version: v2.3.0 # renovate: datasource=github-releases depName=golangci/golangci-lint v2.3.1 # renovate: datasource=github-releases depName=golangci/golangci-lint

View File

@ -26,7 +26,7 @@ jobs:
GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
GONOSUMDB: ${{ vars.GONOSUMDB }} GONOSUMDB: ${{ vars.GONOSUMDB }}
GOPROXY: ${{ vars.GOPROXY }} GOPROXY: ${{ vars.GOPROXY }}
uses: goreleaser/goreleaser-action@v6.4.0 uses: goreleaser/goreleaser-action@v6.3.0
with: with:
version: v2.11.2 # renovate: datasource=github-releases depName=goreleaser/goreleaser version: v2.11.2 # renovate: datasource=github-releases depName=goreleaser/goreleaser
args: release --clean args: release --clean

View File

@ -8,6 +8,8 @@ import (
"strings" "strings"
) )
var version string
func main() { func main() {
ips := os.Args[1:] ips := os.Args[1:]
switch { switch {
@ -32,10 +34,7 @@ func main() {
for _, addr := range addrs { for _, addr := range addrs {
if strings.Split(addr.String(), "/")[0] == ip { if strings.Split(addr.String(), "/")[0] == ip {
_, err = fmt.Fprintln(os.Stdout, iface.Name) fmt.Fprintln(os.Stdout, iface.Name)
if err != nil {
log.Fatal(err.Error())
}
return return
} }
} }