Problem
You may have previously published a private module with a version string that does not conform to semantic versioning. Due to a resolved issue, publishing new modules now correctly enforces this standard, which may cause publishing to fail for non-compliant version tags.
Release tag names must follow the Semantic Versioning scheme. You can optionally prefix the version with a v. For example, v1.0.4 and 0.9.2 are valid. The private module registry ignores tags that do not follow this naming scheme.
Warning: Do not attempt to delete and republish the module. This action will cause all previously published but incorrect versions to fail to upload. This cannot be undone in HCP Terraform and requires restoring a backup if you are using Terraform Enterprise.
Prerequisites
- Terraform Enterprise v202301-1 or later
- HCP Terraform
Solution
To resolve this issue, publish a new version of the module with a semantically compliant version tag. Any versions that were published before the enforcement update will continue to work and can be referenced, as long as they are not deleted.
Additional Information
- For more details on module publishing requirements, refer to the Preparing a Module Repository documentation.