Build can't be easily automated when a parser function is needed
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- build-system
Direzione di ricerca
Start by reproducing the build with the shown helpers/parse.ps1 and crescendo/mycommand.json, then inspect how Export-CrescendoModule resolves external output handler functions. Done means the parser function is available without manually dot-sourcing it in the invoking console and the missing output handler error is gone.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Create a build script for a Crescendo configuration that requires an external script for parsing
. "$PSScriptRoot\helpers\parse.ps1"
Export-CrescendoModule -ConfigurationFile "$PSScriptRoot\crescendo\mycommand.json" -ModuleName MyCommand -Force
Expected behavior
The functions in parse.ps1 should be available for Export-CrescendoModule
(I'm actually not sure they will be available for any external scripts unless deployed from a console that has had the functions dot sourced.)
Actual behavior
Crescendo fails with error
Work around is to dot source the script by hand into the console that starts the build script
Error details
Exception: Cannot find output handler function 'XXX'.
Environment data
Name Value
---- -----
PSVersion 7.2.10
PSEdition Core
GitCommitId 7.2.10
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
1.1.0
Visuals
No response
- Lingua principale
- PowerShell
- Stelle
- 437
- Fork
- 49
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
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 PowerShell/Crescendo
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
PowerShell/Crescendo#210 ·
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
PowerShell/Crescendo#208 · 2 reazioni ·
-
Issue-Enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#202 ·
-
Issue-Enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
PowerShell/Crescendo#199 ·
-
Ordered combined commandsApertaIssue-Enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PowerShell/Crescendo#196 ·
Tutte le issue di PowerShell/Crescendo
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Install fails with pnpm: ERR_PNPM_IGNORED_BUILDS from auto-installed peer-dependency build scriptsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
mitsuhiko/agent-stuff#64 · 1 commento ·
-
chore(26.10): update golangApertaPriority
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
canonical/chisel-releases#1328 ·
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
openclaw/openclaw#159861 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno