Skip to content
This repository was archived by the owner on Dec 3, 2020. It is now read-only.
This repository was archived by the owner on Dec 3, 2020. It is now read-only.

Running Invoke-Build RunModule fails on macOS #38

@lidopaglia

Description

@lidopaglia

Following the build script instructions in the README.md on macOS 10.12.5 results in an error.

PowerShell version:

Name                      Value                                                                                                
----                      -----                                                                                                
PSVersion                 6.0.0-beta                                                                                           
PSEdition                 Core                                                                                                 
BuildVersion              3.0.0.0                                                                                              
CLRVersion                                                                                                                     
GitCommitId               v6.0.0-beta.1                                                                                        
OS                        Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RE...
Platform                  Unix                                                                                                 
PSCompatibleVersions      {1.0, 2.0, 3.0, 4.0...}                                                                              
PSRemotingProtocolVersion 2.3                                                                                                  
SerializationVersion      1.1.0.1                                                                                              
WSManStackVersion         3.0  

Error output:

PS /Users/lido/Code/Phosphor> Invoke-Build RunModule                                                                            
Build RunModule /Users/lido/Code/Phosphor/Phosphor.build.ps1
Task /RunModule/Build/BuildModule/SetupDotNet

### Installing .NET CLI 1.0.0...

dotnet-install: Downloading https://dotnetcli.azureedge.net/dotnet/Sdk/1.0.0/dotnet-dev-osx-x64.1.0.0.tar.gz                    dotnet-install: Extracting zip                                                                                                  dotnet-install: Adding to current process PATH: /Users/lido/Code/Phosphor/.dotnet. Note: This change will be visible only when sourcing script.                                                                                                                 
dotnet-install: Installation finished successfully.

### Installation complete.

### Using dotnet v1.0.0 at path /Users/lido/Code/Phosphor/.dotnet/dotnet

Done /RunModule/Build/BuildModule/SetupDotNet 00:00:49.1015430
Done /RunModule/Build/BuildModule/Restore/SetupDotNet
Task /RunModule/Build/BuildModule/Restore

Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.

Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.

Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 4656 ms
Expanding 100% 8426 ms
  Restoring packages for /Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj...
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error : Unable to load the service index for source https://powershell.myget.org/F/powershell-core/api/v3/index.json. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :   The type initializer for 'System.Net.Http.CurlHandler' threw an exception. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :   The type initializer for 'Http' threw an exception. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :   The type initializer for 'HttpInitializer' threw an exception. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :   The type initializer for 'CryptoInitializer' threw an exception. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :   Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
/Users/lido/Code/Phosphor/.dotnet/sdk/1.0.0/NuGet.targets(97,5): error :    (Exception from HRESULT: 0x8007007E) [/Users/lido/Code/Phosphor/src/Phosphor/Phosphor.csproj]
At /Users/lido/Code/Phosphor/Phosphor.build.ps1:93 char:1
+ task Restore -If { "Restore" -in $BuildTask -or (NeedsRestore(".\src" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At /Users/lido/Code/Phosphor/Phosphor.build.ps1:101 char:1
+ task BuildModule {
+ ~~~~~~~~~~~~~~~~~~
At /Users/lido/Code/Phosphor/Phosphor.build.ps1:120 char:1
+ task Build BuildModule, BuildClient
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At /Users/lido/Code/Phosphor/Phosphor.build.ps1:144 char:1
+ task RunModule Build, {
+ ~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 5 tasks, 1 errors, 0 warnings 00:01:15.1822530
exec : Command { & $script:dotnetExe restore .\src\Phosphor\Phosphor.csproj } exited with code 1.
At /Users/lido/Code/Phosphor/Phosphor.build.ps1:94 char:5
+     exec { & $script:dotnetExe restore .\src\Phosphor\Phosphor.csproj ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (:) [Invoke-BuildExec], Exception
    + FullyQualifiedErrorId : Invoke-BuildExec

I'm running PowerShell in ZSH 5.2 with oh-my-zsh installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions