Skip to content
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

fix: prevent modules with no published versions from crashing otf #611

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

robbert229
Copy link
Contributor

This PR prevent modules with no published versions from triggering a nil panic.

@@ -113,7 +113,9 @@ func (h *webHandlers) get(w http.ResponseWriter, r *http.Request) {

switch module.Status {
case ModuleStatusSetupComplete:
Copy link
Contributor Author

@robbert229 robbert229 Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main fix. tfmod is only set if there is a published version.

@robbert229 robbert229 force-pushed the bugfix/module-version-panic branch 2 times, most recently from c66153f to ab30471 Compare September 27, 2023 23:22
@leg100
Copy link
Owner

leg100 commented Sep 28, 2023

Thanks, appreciated.

@leg100 leg100 merged commit 84aa299 into leg100:master Sep 28, 2023
5 checks passed
leg100 added a commit that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [0.1.14](v0.1.13...v0.1.14)
(2023-10-19)


### Features

* github app: [#617](#617)
* always use latest terraform version
([#616](#616))
([83469ca](83469ca)),
closes [#608](#608)


### Bug Fixes

* error 'schema: converter not found for integration.manifest'
([e53ebf2](e53ebf2))
* fixed bug where proxy was ignored
([#609](#609))
([c1ee8d8](c1ee8d8))
* prevent modules with no published versions from crashing otf
([#611](#611))
([84aa299](84aa299))
* skip reporting runs created via API
([#622](#622))
([5d4527b](5d4527b)),
closes [#618](#618)


### Miscellaneous

* add note re cloud block to allow CLI apply
([4f03544](4f03544))
* remove unused exchange code response
([4a966cd](4a966cd))
* upgrade vulnerable markdown go mod
([781e0f6](781e0f6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Louis Garman <75728+leg100@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants