Mistuke / GhcChoco

Chocolatey sources for pure GHC installs
https://chocolatey.org/packages/ghc
MIT License
4 stars 1 forks source link

GHC 8.6.1 not being installed properly? #2

Closed RyanGlScott closed 5 years ago

RyanGlScott commented 5 years ago

I'm attempting to upgrade this appveyor.yml file to use GHC 8.6.1. However, the GHC 8.6.1 build in particular is failing (while all others succeed). Here is the build log for 8.6.1:

Build started
git clone -q --branch=master https://github.com/RyanGlScott/code-page.git c:\WORK
git checkout -qf c43f0b2a80f908421d8f4922e3a931057e696cc0
Running Install scripts
choco install -y cabal
Chocolatey v0.10.8
Installing the following packages:
cabal
By installing you accept licenses for the packages.
Progress: Downloading cabal 2.4.0.0... 100%

cabal v2.4.0.0 [Approved]
cabal package files install completed. Performing other installation steps.
Hiding shims for 'C:\ProgramData\chocolatey\lib\cabal\tools\x86'.
 ShimGen has successfully created a shim for cabal.exe
 The install of cabal was successful.
  Software install location not explicitly set, could be in package or 
  default install location if installer.

Chocolatey installed 1/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
choco install -y ghc --version %GHCVER%
Chocolatey v0.10.8
Installing the following packages:
ghc
By installing you accept licenses for the packages.
Progress: Downloading ghc 8.6.1... 100%

ghc v8.6.1 [Approved]
ghc package files install completed. Performing other installation steps.
Downloading ghc 64 bit
  from 'https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-unknown-mingw32.tar.xz'
Progress: 100% - Completed download of C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall (203.61 MB).
Download of ghcInstall (203.61 MB) completed.
Hashes match.
C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall
Extracting C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall to C:\ProgramData\chocolatey\lib\ghc\tools...
C:\ProgramData\chocolatey\lib\ghc\tools
Extracting C:\ProgramData\chocolatey\lib\ghc\tools\ghcInstall~ to C:\ProgramData\chocolatey\lib\ghc\tools...
C:\ProgramData\chocolatey\lib\ghc\tools
PATH environment variable does not have C:\ProgramData\chocolatey\lib\ghc\tools\ghc-ghc-8.6.1\bin in it. Adding...
Hiding shims for 'C:\ProgramData\chocolatey\lib\ghc\tools'.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of ghc was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\ghc\tools'

Chocolatey installed 1/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
refreshenv
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..
set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
cabal --version
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library 
ghc --version
'ghc' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1

It's entirely possible that I'm doing something wrong here, although it does seem suspicious that only the 8.6.1 build is failing.

Mistuke commented 5 years ago

Hi,

Thanks for the report, it seems my validation scripts didn't pick up that typo.. I've pulled the package. New one will be available as soon as validation finishes.

sorry about that.

RyanGlScott commented 5 years ago

Awesome! Thanks for the quick response.

Does this mean I'll need to use 8.6.1.1 from Chocolatey in order to make use of this fix, or will 8.6.1 be updated in-place to receive the fix?

Mistuke commented 5 years ago

yeah you'll need to use 8.6.1.1, unfortunately chocolatey is immutable, so I can't fix broken packages with the same version number.

RyanGlScott commented 5 years ago

That's good to know, thanks.