Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Jujutsu unfriendly submit

Aperta
#72 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
git, go
Ambito
cli

Direzione di ricerca

Read internal/commands/submit.go around lines 104-111 and trace the branch detection used by submit. Compare the current git rev-parse command with the proposed git for-each-ref command. Done means submit accepts a Jujutsu detached-HEAD workspace when HEAD points to the master branch, without adding dependencies.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

If you're using Jujutsu, you cannot submit despite the HEAD being on the correct commit (ie. the tip of the master branch). Jujutsu leaves you in a detached HEAD state by default. You can switch the branch manually, and then submit works as expected.

A slight change to the branch detection command (adds no dependencies, and still only relies on git) will allow Jujutsu users to seamlessly use the codecrafters CLI.

I'm happy to make the change myself, but I wanted to make sure it would be accepted.

The issue stems from this code: https://github.com/codecrafters-io/cli/blob/b460df357ffbfb2fd37c9057b0bd5cad066fdc83/internal/commands/submit.go#L104-L111

This currently runs something like

git -C . rev-parse --abbrev-ref HEAD

and the following would make Jujutsu work as expected

git for-each-ref --format=%(refname:short) --points-at HEAD refs/heads
Lingua principale
Go
Stelle
29
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codecrafters-io/cli

Tutte le issue di codecrafters-io/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.