Build can't be easily automated when a parser function is needed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- powershell
- Lĩnh vực
- build-system
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PowerShell
- Star
- 437
- Fork
- 49
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/Crescendo
-
Issue-Enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
PowerShell/Crescendo#210 ·
-
Extend functions that implement classes for ParameterInfo and Command with additional parameter optionsCó thể đã có người làm @steviecoaster đã nhận 916 ngày trước. Đang mởIssue-Enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
PowerShell/Crescendo#208 · 2 reaction ·
-
Issue-Enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PowerShell/Crescendo#202 ·
-
Issue-Enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
PowerShell/Crescendo#199 ·
-
Ordered combined commandsĐang mởIssue-Enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/Crescendo#196 ·
Tất cả issue của PowerShell/Crescendo
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
libsdl-org/SDL#16530 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
complexity: trivial good first issue impact: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
ueberdosis/tiptap#8522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade to Micrometer 1.17.2Đang mởin: build type: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
spring-projects/spring-ldap#1791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing testĐang mởbuild/ci front-end:kotlin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Taisei fails to build on BSD because the bundled openlibm is compiled with `-D_ANSI_SOURCE`.Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
taisei-project/taisei#454 ·