[Feature request] CDKTF Manager #27161
Closed
froblesmartin
started this conversation in
Suggest an Idea
Replies: 2 comments
-
Hi there, You're asking us to support a new package manager. We need to know some basic information about this package manager first. Please copy/paste the new package manager questionnaire, and fill it out in full. Once the questionnaire is filled out we'll decide if we want to support this new manager. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New package manager questionnaire at the bottom in collapsible
Hi! I have just started using Renovate, and Dependabot is covering most of our cases, but this is one of those that does not cover.
We have a couple of CDKTF projects, and there we have the Terraform providers and modules defined in the
cdktf.json
file.For now, I have managed to update them with a custom manager, but it is not nice. I have to keep the providers as a one-line definition, and the modules as a block, so that they are matched by different regular expressions.
I am considering adding the new manager, but I would need to dive into the project's code. Actually, maybe this would not be a new manager, just an extension to the Terraform one to also support the
cdktf.json
file and format 🤔 .I am posting this also so that others can use the custom manager as well for now. 😄
Example
cdktf.json
:And the
customManagers
:New package manager questionnaire
New package manager questionnaire
Did you read our documentation on adding a package manager?
Basics
What's the name of the package manager?
CDKTF
What language(s) does this package manager support?
Terraform
How popular is this package manager?
Based on Terraform, becoming more and more popular.
Does this language have other (competing?) package managers?
What are the big selling points for this package manager?
Supporting a Terraform official Hashicorp project.
Detecting package files
What kind of package files, and names, does this package manager use?
cdktf.json
Which
fileMatch
pattern(s) should Renovate use?"fileMatch": ["(^|/)cdktf\.json$"]
Do many users need to extend the
fileMatch
pattern for custom file names?Is the
fileMatch
pattern going to get many "false hits" for files that have nothing to do with package management?No.
Parsing and Extraction
Can package files have "local" links to each other that need to be resolved?
Yes, you can define local modules for example (https://developer.hashicorp.com/terraform/cdktf/create-and-deploy/configuration-file#module-source).
Package file parsing method
Parse the JSON file, and then it is the same as other Terraform files.
The package files should be:
Which format/syntax does the package file use?
How should we parse the package files?
Does the package file have different "types" of dependencies?
List all the sources/syntaxes of dependencies that can be extracted
Same as Terraform
Describe which types of dependencies above are supported and which will be implemented in future
Same as Terraform
Versioning
What versioning scheme does the package file(s) use?
Same as Terraform
Does this versioning scheme support range constraints, like
^1.0.0
or1.x
?^1.0.0
or1.x
), provide details.Lookup
Is a new datasource required?
Will users want (or need to) set a custom host or custom registry for Renovate's lookup?
Where can Renovate find the custom host/registry?
Are there any constraints in the package files that Renovate should use in the lookup procedure?
v3.x
), provide details.Will users need the ability to configure language or other constraints using Renovate config?
Artifacts
Does the package manager use a lock file or checksum file?
Is the locksum or checksum mandatory?
If lockfiles or checksums are used: what tool and exact commands should Renovate use to update one (or more) package versions in a dependency file?
Package manager cache
Does the package manager use a cache?
If the package manager uses a cache, how can Renovate control the cache?
Should Renovate keep a cache?
Generating a lockfile from scratch
Renovate can perform "lock file maintenance" by getting the package manager to generate a lockfile from scratch.
Can the package manager generate a lockfile from scratch?
Other
What else should we know about this package manager?
Beta Was this translation helpful? Give feedback.
All reactions