Repository navigation
fix(ddev-hostname): sudo can't find ddev-hostname in linuxbrew, fixes #7510 - #7512
Merged
Merged
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
Member
Author
|
This doesn't work yet. |
rfay
force-pushed
the
20250805_rfay_homebrew_hostname
branch
from
August 6, 2025 21:04
f877b83 to
499b526
Compare
rfay
marked this pull request as ready for review
August 6, 2025 21:04
stasadev
approved these changes
Aug 7, 2025
stasadev
left a comment
Member
There was a problem hiding this comment.
Looks good and works well.
Ubuntu Homebrew:
/home/linuxbrew/.linuxbrew/bin/ddev-hostname needs to run with administrative privileges.
This is required to add unresolvable hostnames to the hosts file.
You may need to enter your password for sudo or allow elevation.
DDEV will issue the command:
/home/linuxbrew/.linuxbrew/bin/ddev-hostname test.example.com 127.0.0.1
[sudo] password for stas:
Arch Linux:
/usr/bin/ddev-hostname needs to run with administrative privileges.
This is required to add unresolvable hostnames to the hosts file.
You may need to enter your password for sudo or allow elevation.
DDEV will issue the command:
/usr/bin/ddev-hostname test.example.com 127.0.0.1
[sudo] password for stas:
Traditional Windows
C:\Program Files\DDEV\ddev-hostname.exe needs to run with administrative privileges.
This is required to add unresolvable hostnames to the hosts file.
You may need to enter your password for sudo or allow elevation.
DDEV will issue the command:
C:\Program Files\DDEV\ddev-hostname.exe test.example.com 127.0.0.1
(UAC popup appears)
Member
Author
|
macOS homebrew: |
Member
Author
|
WSL2: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
ddev-hostnameelevation does not work #7510With a Linux homebrew installation,
ddev-hostnameelevation does not succeedHow This PR Solves The Issue
sudo /absolute/path/to/ddev-hostnameto make sure sudo doesn't stumble finding the targetManual Testing Instructions
On linux AND macOS, with homebrew-installed ddev (but overwritten with the ddev from this PR)
Automated Testing Overview
We don't have a strategy for testing things that use sudo; we used to allow passwordless sudo on the buildkite machines, but that hid other problems. Maybe there's a way to solve this with a temporary overwrite of the /etc/sudoers.d/something
Release/Deployment Notes