cisagov / cisagov/windows-commando-vm-packer

Installing Boxstarter via Chocolatey fails

Open
#36 0 comments 0 reactions 1 assignee Claimed by @itsmostafa View on GitHub
Dominant language
HCL
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

# 🐛 Summary #

Installing [Boxstarter](https://boxstarter.org/) via Chocolatey fails using the following command:
`choco install Boxstarter`

Instead the following command is being used successfully:

```powershell
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString("https://boxstarter.org/bootstrapper.ps1"))
Get-Boxstarter -Force
```
Unfortunately, there currently isn't much information as to why its failing and will need to be
investigated at a future date.

## To reproduce ##

Steps to reproduce the behavior:

Change the following lines in the `src/powershell/install-boxstarter.ps1` script from

```powershell
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString("https://boxstarter.org/bootstrapper.ps1"))
Get-Boxstarter -Force
```
to
```powershell
choco install Boxstarter
```

## Expected behavior ##

`choco install Boxstarter` should have achieved the same behavior as installing from referencing a script via a url.

## Any helpful log output or screenshots ##

The following is the error shown as is in the GH Actions logs:

```console
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: C:\Windows\Temp\script-64f91fdf-0274-19da-f6a1-95edd8448d2b.ps1 : [*] Failed to install and configure Boxstarter
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: At line:1 char:215
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: + ... d91929.ps1; &'c:/Windows/Temp/script-64f91fdf-0274-19da-f6a1-95edd844 ...
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,script-64f91fdf-0274-19da-f6a1-95edd84
2023-09-07T01:02:36Z: ==> amazon-ebs.windows: 48d2b.ps1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.