planetscale / planetscale/ghcommit
Symlinks aren't handled correctly
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 60
- Forks
- 2
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Unsure if this should be here, or in the ghcommit-action repo. It appears likely there's an assumption being made about the file modes when generating the commit blobs. This causing this utility (and dependent action) to generate defunct commits.
Reproducer: Create a new, or modify an existing, symlink to file in the repo. Run the utility (or Github action).
Expected result: the symlink is created/updated to point to the target file.
Actual result: the symlink points to a non-existent file. The name of this file is the contents of the symlink target.
As I'm able to use another action achieve a similar result successfully (qoomon/actions--create-commit), I presume this isn't a limitation of the GH API, but something specific to its usage here.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem mit einem neuen oder geänderten Symlink zu reproduzieren, und untersuche anschließend die Commit-Blob-Erzeugung und die Dateimodusbehandlung des Dienstprogramms. Vergleiche den erzeugten Commit mit dem erwarteten Verhalten des Symlink-Ziels und dem erfolgreichen Ergebnis von qoomon/actions--create-commit. Als erledigt gilt die Aufgabe, wenn das Dienstprogramm und die davon abhängige Action Symlinks erstellen oder aktualisieren, die auf die Zieldatei verweisen, statt den Inhalt des Ziels als Dateinamen zu behandeln.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, go, graphql
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100