./cli.json on windows executable resolves to current working directory instead of path relative to .exe.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dal flusso di init e dal percorso di caricamento della configurazione dell'eseguibile, concentrandoti su come viene risolto ./cli.json su Windows. Riproduci il comportamento da una directory di lavoro diversa e conferma che la configurazione venga salvata e caricata in relazione alla directory del .exe quando il problema sarà risolto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After running init and selecting to save the configs to ./cli.json the executable is unable to find the config file unless the console working directory is the executable's directory. In fact, I believe the ./cli.json file is saved to whichever working directory you have active when initis run.
Not sure if this is the intended functionality but I expected it to save to the same directory as the .exe file and to always be loaded from there regardless of my working directory.
As a temporary fix I created a batch script that I am using to call the cli app from anywhere with the expected behavior. I'm posting it here in case anyone finds this thread and needs an immediate fix.
gotify.bat
-----------------
@echo off
pushd %~dp0
Call %~dp0\gotify-cli-windows-amd64.exe p -q %*
popd
The scripts needs to be placed on the same directory as the executable to work as is.
- Lingua principale
- Go
- Stelle
- 588
- Fork
- 73
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gotify/cli
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
-
a:feature
-
Package for Ubuntu Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Distribute as a snap? Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
a:feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Issue simili
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
kind/bug status/0-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
🤔 refinement needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
equinor/radix-operator#1979 ·