Closed starhawking closed 3 years ago
It looks like github is doing a redirect for several of these repos, however the provider.go
is at a different path for the ones that are falling through. For example, instead of being in the root of the repo, the tls provider has it at internal/provider/provider.go
Hi @starhawking, thanks for reporting this. The logic in makecode.py
really needs a lot of work. Have a look at #issue145 for another problem with makecode.py
. I hope to find some time this weekend to look into these problems.
Hi @starhawking, thanks for reporting this. The logic in
makecode.py
really needs a lot of work. Have a look atissue145 for another problem with
makecode.py
. I hope to find some time this weekend to look into these problems.
Thanks for the super quick response!
I was starting to put together a PR for this if you'd like it. I found a lot of places where things had moved in the repos, and the clone depth of 0 was no longer catching the provider.go
file, and some had moved the provider.go
to another name entirely. I don't quite have all the edge cases captured yet tho.
FYI: I started a separate discussion (#149) on the issue of making makecode.py
more robust.
I think some of the issues with moved directories (and moved providers.go) should be solved by https://github.com/mjuenema/python-terrascript/pull/150 (which I made while @mjuenema was investigating better alternatives)
@starhawking Feel free to add your name to CONTRIBUTORS.md
and create a Pull Request for it. You deserve it.
Also, if you pull develop now, you'll be able to run make providers
and it would actually handle some (all) of those cases, but the increased logging would be good non-the-less.
I'll close this issue for now as it should be working, and hopefully @mjuenema will be able to finish the work on the updated tooling soon.
It appears that several hashicorp maintained providers have moved from https://github.com/terraform-providers into https://github.com/hashicorp .
This breaks the codegen for adding new providers, and the
makecode.py
script does not currently provide useful information when it fails to pull these repos.I added some temporary logging to demonstrate the situation: