macOS: the socket directory is named "user", not the uid

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
cli

Rechercherichtung

Start with the uid() helper, which reads /proc and so fails on macOS, and with the code that builds the Client–Daemon socket directory name from it. Switching that lookup to getuid() is the core change. The harder part is the upgrade path: decide how a Client finds an old-path Daemon once, either by checking both paths or by stopping the old Daemon. Done when the macOS socket sits under the uid and a Client started after an upgrade leaves no stale Daemon running.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

uid() reads /proc, which macOS doesn't have, so on macOS the Client–Daemon socket directory is …/T/singularity-user/ instead of using the uid. Harmless (macOS's $TMPDIR is private to the user), but worth fixing with getuid().

Care is needed: renaming the directory strands a running Daemon on the old path, so on the first start after an upgrade the Client must look on both paths (or stop the old Daemon) once.

Done when

  • On macOS the socket lives under the uid
  • A Client started after an upgrade leaves no stale Daemon running
Vorherrschende Sprache
Rust
Sterne
0
Forks
0
Ø Merge
3 Std. 30 Min.
Gemergte PRs (30 T.)
25

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus publicusr/singularity

Alle Issues in publicusr/singularity

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.