Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dsc should add it's home directory to PATH to find included resources #494

Closed
3 tasks done
SteveL-MSFT opened this issue Jul 18, 2024 · 0 comments · Fixed by #499
Closed
3 tasks done

dsc should add it's home directory to PATH to find included resources #494

SteveL-MSFT opened this issue Jul 18, 2024 · 0 comments · Fixed by #499
Assignees
Labels
Issue-Bug Something isn't working Need-Review
Milestone

Comments

@SteveL-MSFT
Copy link
Member

SteveL-MSFT commented Jul 18, 2024

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

dsc will look it it's home directory for resource manifests, but then fails to find the executable since it's not actually in PATH

Steps to reproduce

  1. build.ps1
  2. ./bin/debug/dsc -l trace config test -p ./dsc/examples/osinfo_parameters.dsc.yaml

Expected behavior

This should succeed

Actual behavior

2024-07-18T20:23:02.440983Z ERROR dsc::subcommand: 137: Error: IO: No such file or directory (os error 2)

This is because although the osinfo resource is found, the osinfo executable isn't found.

dsc should add it's home directory to PATH (if not already there, probably at the end) so that the included resource exes get found on startup.

Discovery should be updated to not look in home directory and just use the new PATH

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.0-preview.3
PSEdition                      Core
GitCommitId                    7.5.0-preview.3
OS                             Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

dsc 3.0.0-preview.8

Visuals

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Need-Review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants