Browse Source

Update examples to use v3 major version

master
Isaac 2 years ago
parent
commit
d6b5d792b4
  1. 6
      Makefile
  2. 2
      examples/autocert/autocert.go
  3. 2
      examples/certbot/certbot.go

6
Makefile

@ -1,5 +1,5 @@
.PHONY: test clean pebble pebble_setup pebble_start pebble_wait pebble_stop boulder boulder_setup boulder_start boulder_stop
.PHONY: test examples clean pebble pebble_setup pebble_start pebble_wait pebble_stop boulder boulder_setup boulder_start boulder_stop
GOPATH ?= $(HOME)/go
@ -14,6 +14,10 @@ test:
-go clean -testcache
go test -race -coverprofile=$(COVERAGE) -covermode=atomic $(TEST_PATH)
examples:
go build -o /dev/null examples/certbot/certbot.go
go build -o /dev/null examples/autocert/autocert.go
clean:
rm -f coverage_*.txt

2
examples/autocert/autocert.go

@ -15,7 +15,7 @@ import (
"log"
"github.com/eggsampler/acme/v2"
"github.com/eggsampler/acme/v3"
)
func main() {

2
examples/certbot/certbot.go

@ -22,7 +22,7 @@ import (
"flag"
"os"
"github.com/eggsampler/acme/v2"
"github.com/eggsampler/acme/v3"
)
var (

Loading…
Cancel
Save