From e2f81c198a48094806f3fb20484cd9e26615cb4d Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Mon, 4 Jul 2022 11:38:08 +0200 Subject: [PATCH] remove dependency to go-toml/v1 --- go.mod | 1 - go.sum | 2 -- internal/encoding/toml/codec.go | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 9093006..bcd0f4f 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/hashicorp/hcl v1.0.0 github.com/magiconair/properties v1.8.6 github.com/mitchellh/mapstructure v1.5.0 - github.com/pelletier/go-toml v1.9.5 github.com/pelletier/go-toml/v2 v2.0.2 github.com/sagikazarmark/crypt v0.6.0 github.com/spf13/afero v1.8.2 diff --git a/go.sum b/go.sum index 2a894cb..a090fa0 100644 --- a/go.sum +++ b/go.sum @@ -333,8 +333,6 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.2 h1:+jQXlF3scKIcSEKkdHzXhCTDLPFi5r1wnK6yPS+49Gw= github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/internal/encoding/toml/codec.go b/internal/encoding/toml/codec.go index 45fddc8..8897f2f 100644 --- a/internal/encoding/toml/codec.go +++ b/internal/encoding/toml/codec.go @@ -4,7 +4,7 @@ package toml import ( - "github.com/pelletier/go-toml" + "github.com/pelletier/go-toml/v2" ) // Codec implements the encoding.Encoder and encoding.Decoder interfaces for TOML encoding.