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

init not working on macOS

Aperta
#36 6 commenti 7 reazioni 0 assegnatari Vedi su GitHub

@hlubek ci sta già lavorando.

Dal 29/1/2020.

  • #41 di @hlubek — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, macos
Ambito
cli

Direzione di ricerca

Inizia riproducendo refresh init e refresh run su macOS con l'output dei comandi mostrato. Ispeziona i percorsi della CLI responsabili della creazione della configurazione predefinita e dell'avvio del binario ricompilato; il lavoro è completato quando refresh init crea refresh.yml e refresh run viene eseguito correttamente senza una configurazione creata manualmente.

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

Descrizione

Unsure on what is happening but refresh init is not creating the default yml file.
Note that the refresh.yml.bak file is just my backup file to submit this issue.
Also note that the project is outside GOPATH and it seems to make no difference if GO111MODULE=on is set.

> ls -l
total 24088
-rw-r--r--@ 1 gus  staff       130 25 Aug 18:28 Makefile
-rwxr-xr-x  1 gus  staff  12272428 25 Aug 18:26 backend*
-rw-------  1 gus  staff      2930 25 Aug 18:24 go.mod
-rw-------  1 gus  staff     39189 25 Aug 18:24 go.sum
-rw-r--r--@ 1 gus  staff      2235 25 Aug 17:38 main.go
drwxr-xr-x  5 gus  staff       160 25 Aug 12:52 pkg/
-rw-r--r--@ 1 gus  staff       997 25 Aug 18:27 refresh.yml.bak
drwxr-xr-x  4 gus  staff       128 25 Aug 14:27 vendor/
> refresh init
Refresh (1.4.0)

> ls -l
total 24088
-rw-r--r--@ 1 gus  staff       130 25 Aug 18:28 Makefile
-rwxr-xr-x  1 gus  staff  12272428 25 Aug 18:26 backend*
-rw-------  1 gus  staff      2930 25 Aug 18:24 go.mod
-rw-------  1 gus  staff     39189 25 Aug 18:24 go.sum
-rw-r--r--@ 1 gus  staff      2235 25 Aug 17:38 main.go
drwxr-xr-x  5 gus  staff       160 25 Aug 12:52 pkg/
-rw-r--r--@ 1 gus  staff       997 25 Aug 18:27 refresh.yml.bak
drwxr-xr-x  4 gus  staff       128 25 Aug 14:27 vendor/

Unable to get any more verbose output from the binary.

refresh run runs without the config file but does not work:

> refresh run
Refresh (1.4.0)

2019/08/25 18:32:49 No configuration loaded, proceeding with defaults
refresh: 2019/08/25 18:32:49 === Rebuild on: :start: ===
refresh: 2019/08/25 18:32:49 === Running: go build -v -o   (PID: 48379) ===
refresh: 2019/08/25 18:32:50 === Building Completed (PID: 48379) (Time: 759.844718ms) ===
refresh: 2019/08/25 18:32:50 === fork/exec : no such file or directory
 ===

However it works fine when I manually create a refresh.yml file.

Lingua principale
Go
Stelle
196
Fork
32
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 markbates/refresh

Tutte le issue di markbates/refresh

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.