1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Revert "CICD: GoReleaser version" (#2756)

This commit is contained in:
Tom Limoncelli
2024-01-02 15:20:01 -05:00
committed by GitHub
parent 17da0bc69f
commit 9221a0638c
9 changed files with 94 additions and 19 deletions

View File

@@ -5,15 +5,11 @@ import (
"encoding/json"
"fmt"
"github.com/StackExchange/dnscontrol/v4/pkg/version"
"github.com/StackExchange/dnscontrol/v4/providers"
hxcl "github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v3/apiclient"
)
// GoReleaser: version
var (
version = "dev"
)
// HXClient describes a connection to the hexonet API.
type HXClient struct {
APILogin string
@@ -40,7 +36,7 @@ func newProvider(conf map[string]string) (*HXClient, error) {
api := &HXClient{
client: hxcl.NewAPIClient(),
}
api.client.SetUserAgent("DNSControl", version)
api.client.SetUserAgent("DNSControl", version.Banner())
api.APILogin, api.APIPassword, api.APIEntity = conf["apilogin"], conf["apipassword"], conf["apientity"]
if conf["debugmode"] == "1" {
api.client.EnableDebugMode()