gaelcolas / gaelcolas/DscInfraSample

What is the command you use to actually fire off this build process?

Open
#8 17 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
PowerShell
Stars
49
Forks
22
PR merge metrics
No merged PRs in 30d

Description

```powershell
PS C:\Temp\DscInfraSample-DEV> .\.Build.ps1
Invoke-Build : The term 'Invoke-Build' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Temp\Git\DscInfraSample-DEV\.Build.ps1:39 char:9
+ Invoke-Build $Tasks $MyInvocation.MyCommand.Path @PSBoundPara ...
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-Build:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
```

I don't see an `Invoke-Build` function anywhere that you've provided. Does this repo function by itself or are there dependencies that I'm not noticing? I can only assume you're needing https://github.com/nightroman/Invoke-Build as a dependency.

Even with `InvokeBuild` installed (`Install-Module InvokeBuild -Force`), I still have errors:
```powershell
PS C:\Temp\Git\DscInfraSample> .\.Build.ps1
DSC_Configurations
Build . C:\Temp\Git\DscInfraSample\.Build.ps1
Task /./Clean
------------------------------------------------------------------------------
CLEAN UP
------------------------------------------------------------------------------
Done /./Clean 00:00:00.0365730
Task /./PSModulePath_BuildModules
Done /./PSModulePath_BuildModules 00:00:00.0160784
Task /./test

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 0.0.30 datum {Get-DatumRSOP, Get-FileProviderData, Get-MergeStrategyFromPath, Invoke-ProtectedDatumAction...}
Script 3.4.0 Pester {Describe, Context, It, Should...}

Done /./test 00:00:00.1213200
Task /./LoadResource
ERROR: The term 'Invoke-PSDepend' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Temp\Git\DscInfraSample\.Build.ps1:60 char:13
+ Invoke-PSDepend -Path $PSDependResourceDefinition -Confir ...
+ ~~~~~~~~~~~~~~~
At C:\Temp\Git\DscInfraSample\.Build.ps1:57 char:5
+ task LoadResource {
+ ~~~~~~~~~~~~~~~~~~~
At C:\Temp\Git\DscInfraSample\.Build.ps1:52 char:5
+ task . Clean,PSModulePath_BuildModules,test,LoadResource,LoadConf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 5 tasks, 1 errors, 0 warnings 00:00:00.7169683
Invoke-PSDepend : The term 'Invoke-PSDepend' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Temp\Git\DscInfraSample\.Build.ps1:60 char:13
+ Invoke-PSDepend -Path $PSDependResourceDefinition -Confir ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-PSDepend:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CommandNotFoundException
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Read .Build.ps1 first, especially the calls to Invoke-Build and Invoke-PSDepend, and compare them with the errors in the report. Document the required dependencies and the command used to start the build, then verify that the documented setup gets past these missing-command failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
build-system, devops
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.