Skip to content

Commit 40c865c

Browse files
author
Matt Calhoun
authored
update version pinning of cloudposse/utils (#68)
* update pinning * update readme
1 parent de7da5b commit 40c865c

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ We highly recommend that in your code you pin the version to the exact version y
104104
using so that your infrastructure remains stable, and update versions in a
105105
systematic way so that they do not catch you by surprise.
106106

107-
Also, because of a bug in the Terraform registry ([hashicorp/terraform#21417](https://github.com/hashicorp/terraform/issues/21417)),
108-
the registry shows many of our inputs as required when in fact they are optional.
109-
The table below correctly indicates which inputs are required.
110-
111107

112108
For a complete example, see [examples/complete](examples/complete).
113109

modules/remote-state/versions.tf

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@ terraform {
1212
}
1313
utils = {
1414
source = "cloudposse/utils"
15-
# Do not allow automatic updates to this provider
16-
# until we have tested the new version thoroughly.
17-
# Move the <= version constraint to the latest version
18-
# after testing is complete. Move the >= version constraint
19-
# when a new version adds a required feature or fixes a bug.
20-
# If a version in between is found to have a bug,
21-
# add a != constraint for that version.
22-
# Leave a redundant != constraint for the last known bad version
23-
# as an example of how to add a constraint for a bad version.
24-
version = ">= 1.7.1, != 1.4.0, <= 1.8.0"
15+
# We were previously pinning this to <=1.8.0, but changing this each time we had a new version was a pain. As
16+
# a compromise, we'll pin to a minimum version, but allow any patch version below 2.0.0 and we will make sure
17+
# that if we make any major/breaking changes in cloudposse/utils, we'll increment to 2.0.0.
18+
version = ">= 1.7.1, != 1.4.0, < 2.0.0"
2519
}
2620
}
2721
}

0 commit comments

Comments
 (0)