Implements a data-source semvers_list
to make semver sorting easy in TF, and
provider functions (TF >= 1.8 is required):
data.semvers_list
: sorts a list of semver stringsprovider::semvers::compare
: compares two semver stringsprovider::semvers::equals
: checks two semver strings for equalityprovider::semvers::pick
: filters a list of semver strings by constraintprovider::semvers::sort
: sorts a list of semver strings, returns sorted one
See the Terraform Registry provider page.
# install dev version of the provider
go install
# test dev version of the provider
(cd ./test; terraform plan)
# run acceptance testing
TF_ACC=1 go test -v ./...
# check and fix formatting
go fmt ./...
# update go modules
go get -u
# generate docs
go generate ./...