From a355b8e438317b603deafec77255eea4c3aa21f1 Mon Sep 17 00:00:00 2001 From: rbelnap Date: Wed, 10 May 2017 09:50:05 -0400 Subject: [PATCH] fix go-namecheap vendor, already applied upstream (#100) * fix go-namecheap vendor, already applied upstream * updating metadata with govendor * add one additional file from govendor update that was missed initially --- .../billputer/go-namecheap/Makefile | 24 +++++++++++++++++++ .../github.com/billputer/go-namecheap/dns.go | 1 + vendor/vendor.json | 6 ++--- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 vendor/github.com/billputer/go-namecheap/Makefile diff --git a/vendor/github.com/billputer/go-namecheap/Makefile b/vendor/github.com/billputer/go-namecheap/Makefile new file mode 100644 index 000000000..a63a59f9c --- /dev/null +++ b/vendor/github.com/billputer/go-namecheap/Makefile @@ -0,0 +1,24 @@ +.PHONY: all fmt vet lint build test +.DEFAULT: default + +all: build fmt lint test vet + +build: + @echo "+ $@" + @go build -tags "$(BUILDTAGS) cgo" . + +fmt: + @echo "+ $@" + @gofmt -l . | grep -v vendor | tee /dev/stderr + +lint: + @echo "+ $@" + @golint ./... | grep -v vendor | tee /dev/stderr + +test: + @echo "+ $@" + @go test -v + +vet: + @echo "+ $@" + @go vet $(shell go list ./... | grep -v vendor) diff --git a/vendor/github.com/billputer/go-namecheap/dns.go b/vendor/github.com/billputer/go-namecheap/dns.go index f1aaab5a7..6592f9b40 100644 --- a/vendor/github.com/billputer/go-namecheap/dns.go +++ b/vendor/github.com/billputer/go-namecheap/dns.go @@ -64,6 +64,7 @@ func (client *Client) DomainDNSSetHosts( requestInfo.params.Set(fmt.Sprintf("HostName%v", i+1), hosts[i].Name) requestInfo.params.Set(fmt.Sprintf("RecordType%v", i+1), hosts[i].Type) requestInfo.params.Set(fmt.Sprintf("Address%v", i+1), hosts[i].Address) + requestInfo.params.Set(fmt.Sprintf("MXPref%v", i+1), strconv.Itoa(hosts[i].MXPref)) requestInfo.params.Set(fmt.Sprintf("TTL%v", i+1), strconv.Itoa(hosts[i].TTL)) } diff --git a/vendor/vendor.json b/vendor/vendor.json index 27902da6f..78b8eb23e 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -188,10 +188,10 @@ "revisionTime": "2016-08-11T16:24:59Z" }, { - "checksumSHA1": "TXJTqz9rg4ttab1r7H7npjHaLsM=", + "checksumSHA1": "1zjIuntUcKPUpENZZl1MD+aemPs=", "path": "github.com/billputer/go-namecheap", - "revision": "fcc3af79f774b09a3ef95ef48b03ee6e76141e91", - "revisionTime": "2016-08-11T21:32:45Z" + "revision": "7e62cd9a88279c621b6daf38a9ef0dd11c4d47e3", + "revisionTime": "2017-04-24T18:15:40Z" }, { "checksumSHA1": "yP+hlSaIhYwxErc/s286p9M+LIs=",