-
Notifications
You must be signed in to change notification settings - Fork 6
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
Initial implementation #1
Conversation
BREAKING CHANGE
Should ease development workflow, especially when `make reuse` is run as a pre-commit hook.
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.
Looks good to me now, but a gopher should also check it
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.
LGTM
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.
Ser bra ut, la bare til ett par kommentarer på ting som ikke er deal breaking :)
- `MemoryStore`: in-memory store that can be populated manually | ||
- Must be populated manually | ||
- `GitHubStore`: queries the GitHub API for modules, version tags and SSH download URLs | ||
- A query for module `namespace/name/provider` will return repository `namespace/name` |
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.
Om jeg ikke husker feil så snakket vi om å implementere en "generic" path som default?
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.
- `provider` part of module URLs is not implemented. Can be set to anything at all. | ||
- Works for a single specified org/user | ||
- No verification for the repo actually being a Terraform repo | ||
|
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.
Hvilke typ av repos vil GithubStore regne som TF moduler? (topicFilter)
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.
|
||
router *chi.Mux | ||
authTokens []string | ||
moduleStore core.ModuleStore |
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.
Ikke viktig akkurat nå, men en framtide feature kan være å støtte flere ModuleStores samtidig. 😇
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.
} | ||
} | ||
|
||
func (app *App) Health() http.HandlerFunc { |
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.
Framtide feature er å sjekke status på backends også (tilgang mot Github for eksempel)
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.
No description provided.