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 #40 #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix #40 #41

wants to merge 3 commits into from

Conversation

mdaniel
Copy link

@mdaniel mdaniel commented Dec 19, 2022

Description

This keeps track of the allocated host ports in the docker run command and reports conflicts with (as best it can) where they came from. Related to that, in actually checks that the port: value in .gitpod.yml is in fact an int rather than just assuming it so. Finally, it also stops swallowing err from the actual Start Workspace invocation

Related Issue(s)

Fixes #40

How to test

  • checkout main
  • build
  • run with the cited example repo's .gitpod.yml
  • observe the failure to launch
  • checkout this branch
  • repeat that exercise and observe there is now a helpful message showing the conflict

Release Notes

Documentation

Otherwise all the error handling in that func goes to waste since no one will see it. It seems `Warnf` is the best we have
The deprecations are since go 1.16 and the workflows/release.yaml says 1.18 and higher
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.

lax port management causes confusing error messages
1 participant