[GHC] #12859: ghc/packages/Cabal is not a valid repository name

#12859: ghc/packages/Cabal is not a valid repository name --------------------------------------+--------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+--------------------------------- On 2016-11-05 I was able to follow the newcomer build instructions [https://ghc.haskell.org/trac/ghc/wiki/Newcomers] for and built ghc on Windows with MSYS2 x64. I am now repeating those steps and see that doing a clean recursive clone of ghc fails for the Cabal submodule and many others ... {{{ $ git clone --recursive git://github.com/ghc/ghc Cloning into '/d/Dev/Src/ghc/libraries/Cabal'... fatal: remote error: ghc/packages/Cabal is not a valid repository name }}} I tried the exact same recursive clone on OSX and it completed without error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Description changed by philderbeast: @@ -2,4 +2,3 @@ - [https://ghc.haskell.org/trac/ghc/wiki/Newcomers] for and built ghc on - Windows with MSYS2 x64. I am now repeating those steps and see that doing - a clean recursive clone of ghc fails for the Cabal submodule and many - others ... + [https://ghc.haskell.org/trac/ghc/wiki/Newcomers] and built ghc on Windows + with MSYS2 x64. I am now repeating those steps and see that doing a clean + recursive clone of ghc fails for the Cabal submodule and many others ... New description: On 2016-11-05 I was able to follow the newcomer build instructions [https://ghc.haskell.org/trac/ghc/wiki/Newcomers] and built ghc on Windows with MSYS2 x64. I am now repeating those steps and see that doing a clean recursive clone of ghc fails for the Cabal submodule and many others ... {{{ $ git clone --recursive git://github.com/ghc/ghc Cloning into '/d/Dev/Src/ghc/libraries/Cabal'... fatal: remote error: ghc/packages/Cabal is not a valid repository name }}} I tried the exact same recursive clone on OSX and it completed without error. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by philderbeast): The automated mirror at {{{https://github.com/ghc}}} has different paths to submodules ... {{{ https://github.com/ghc/packages-Cabal http://git.haskell.org/packages/Cabal.git }}} If I don't use the mirror as the newcomer docs say then the submodules are found ... {{{ $ git clone --recursive git://git.haskell.org/ghc Cloning into 'D:/Dev/Src/ghc/libraries/Cabal'... Submodule path 'libraries/Cabal': checked out 'a7fb9b9ae733ceb3c52fee68e6e1a6ded5fb91da' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by hvr): The different url-path scheme is what the command {{{ git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ }}} is supposed to rewrite automatically. What's the Git version you're using? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by philderbeast): Versions of git from the command line here are ... {{{ git bash: git version 2.10.1.windows.1 git CMD: git version 2.10.1.windows.1 msys: git version 2.10.1 posh git: git version 2.10.2.windows.1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by philderbeast): The rewrite rule wasn't in git's global config at {{{%USERPROFILE%/.gitconfig}}} so I added it and then checked again that it was there. {{{ $ git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ $ git config --global --list url.git://github.com/ghc/packages-.insteadof=git://github.com/ghc/packages/ }}} Having set the rewrite rule in the global config, the recursive clone works. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by philderbeast): On windows, depending on which shell and application is used, the global git config file can be at ... {{{ %USERPROFILE%\.gitconfig $HOME/.gitconfig %APPDATA%\.gitconfig }}} SOURCE: [https://www.onwebsecurity.com/windows/git-on-windows-location-of- global-configuration-file] -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12859: ghc/packages/Cabal is not a valid repository name ---------------------------------+-------------------------------------- Reporter: philderbeast | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by philderbeast): I use posh git and git from msys. I see that {{{%USERPROFILE%\.gitconfig}}} and {{{$HOME/.gitconfig}}} are the same file location. In any case, when I was unable to repeat the recursive clone, I tried every git client I have installed and all failed. Previously, one client, I can't remember which, had succeeded. I did have to run CHKDSK to repair the drive on which I was compiling and testing ghc. However, this is {{{E:}}}, not the {{{C:}}} system drive with git's global config. I don't see how this could explain losing the rewrite rule. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12859#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC