Skip to content

core: fix native always true for up even when ports are set - #6626

Merged
sipsma merged 1 commit into
dagger:mainfrom
sipsma:fix-ports
Feb 8, 2024
Merged

sipsma merged 1 commit into
dagger:mainfrom
sipsma:fix-ports

Conversation

@sipsma

@sipsma sipsma commented Feb 8, 2024 •

Copy link
Copy Markdown
Contributor

Think this happened when switch up to default to native.

The logic was accidentally setting native to true even when ports were manually specified which resulted in each port being applied twice. In the case where the same values of frontend and backend were specified (i.e. 5000:5000) this resulted in an error since you'd try to listen on the same port twice.

Should (re-) fix #6303, though this is definitely a different root cause than the previous one because this can only happen if you use the same frontend+backend (whereas previously it happened with any use of --port)

The logic previously was accidentally setting native to true even when
ports were manually specified which resulted in each port being applied
twice. In the case where the same values of frontend and backend were
specified (i.e. 5000:5000) this resulted in an error since you'd try to
listen on the same port twice.

Signed-off-by: Erik Sipsma <[email protected]>
@sipsma
sipsma requested a review from vito February 8, 2024 20:18
@sipsma sipsma added this to the v0.9.9 milestone Feb 8, 2024

@vito vito left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

d'oh, I remember this being the implementation detail to bikeshed, sorry for missing that

@sipsma
sipsma merged commit 5ee49b9 into dagger:main Feb 8, 2024
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.

Bug: bind: address already in use when using dagger up --port

2 participants