-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for terraform provider registry #50
Conversation
lib/server.js
Outdated
@@ -1,4 +1,4 @@ | |||
const http = require('http'); | |||
const https = require('https'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like out-of-scope changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, will probably remove it but terraform provider registry requires HTTPS - once I've sorted the tests out, I should be able to remove https and https-localhost
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have now removed https-localhost
dependency as I added tests that utilise ngrok
Ok @ad-m - this is ready to review now - please have a look and let me know if you need me to make any changes before merging. |
Not sure who will be reviewing this @outsideris - I referenced @ad-m earlier as he commented on the commit before but since you approved my other PRs (HCLv2/Terraform v12 and small update to the docs), I thought I'd bring this one to your attention. Please let me know your thoughts. |
For clarity, I have no relationship with @outsideris . I am part of the community of this project because I follow it. I never even ddownloaded and started it. |
Sorry for late response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution. Now we support providers!!!
Because I refactored code base on master after this PR, I merged this PR manually on my local. And then I will test and modify citizen intensively. (So, you don't need to fix this PR.)
.env | ||
test/integration/fixture/provider | ||
coverage/ | ||
.nyc_output/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will clean up gitignore.
@@ -19,11 +19,12 @@ const normalizePort = (val) => { | |||
return false; | |||
}; | |||
|
|||
const run = () => { | |||
const run = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need async
here.
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "citizen", | |||
"version": "0.3.3", | |||
"version": "1.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to version up now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason version went up is that this MR introduces breaking changes in citizen cli
// error.status = 409; | ||
// error.message = `${destPath} is already exist.`; | ||
// return next(error); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary comments
I rebased this PR on my local, see d698abf |
Thanks for creating citizen - a missing registry for Terraform Modules. I have a need to host custom providers and thought of extending your project.
This PR adds support for hosting custom providers utilising Hashicorp's provider registry protocol documented at https://www.terraform.io/docs/internals/provider-registry-protocol.html.
Changes
citizen
cli commands for publishing providers and trusted publishersI have updated the version to
1.0.0
to indicate breaking changes:citizen publish
command is no longer top level command ascitizen
can now publish modules, providers and publishersmodules
andproviders
directories. This means new version won't work with existing registries, although careful migration is possible