[GHC] #8379: sync-all broken when using the GitHub mirror

#8379: sync-all broken when using the GitHub mirror ------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- Making a fresh checkout using the GitHub mirror: {{{ $ git clone git@github.com:tibbe/ghc.git $ ./sync-all get == running git config core.ignorecase true == running git clone git@github.com:tibbe/ghc-tarballs.git ghc-tarballs Cloning into 'ghc-tarballs'... ERROR: Repository not found. fatal: The remote end hung up unexpectedly git failed: 32768 at ./sync-all line 178. == Checking for old haddock repo == Checking for old binary repo == Checking for old mtl repo == Checking for old Cabal repo == Checking for old time from tarball ============================ ATTENTION! You have an old time package in your GHC tree! Please remove it (e.g. "rm -r libraries/time"), and then run "./sync-all get" to get the new repository. ============================ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by leroux): Oops. This is my fault... Could someone revert 0481e076f3cb4010894324cac71e947c6637805a? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by thoughtpolice): The reason this is happening is because the `sync-all` script was changed to *properly* clone from GitHub (the original version I wrote was broke.) When you clone from your own fork, it attempts to rewrite submodule URLs to `github.com/tibbe/<repo>`. You probably don't have these repositories under your account, so it breaks because it can't clone them. IMO this isn't worth fixing, but perhaps explaining on the wiki - the more 'correct' thing to do (which works) is just always clone/pull from `github.com/ghc/ghc` and set a remote to point to your forks. Of course I don't feel very strongly about this and if people want this behavior changed that's fine - but I feel I should point out it sort of didn't work before anyway. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by leroux): tiibe, http://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#GettingaGHCr... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by tibbe): * status: new => closed * resolution: => invalid Comment: Makes sense to me. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #8667 -------------------------------------+------------------------------------ Changes (by thomie): * related: => #8667 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #8667 -------------------------------------+------------------------------------ Changes (by thomie): * status: closed => new * resolution: invalid => Comment: Since more people seem to run into this, someone please update the README. I added a patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #8667 -------------------------------------+------------------------------------ Changes (by thomie): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Build | Version: 7.7 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: #8667 None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by tibbe): * cc: hvr (added) Comment: This is now correctly documented at https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#GettingaGHC.... Do we also want to keep this info in the README? If so we should fix the docs there too. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Build | Version: 7.7 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: #8667 None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by hvr): Replying to [comment:8 tibbe]:
This is now correctly documented at https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#GettingaGHC.... Do we also want to keep this info in the README? If so we should fix the docs there too.
I guess so, as one of the major uses of the GitHub mirror is if `git.haskell.org` is down (in which case the GHC Wiki is probably down too) for some reason. Then you'd want to have some instructions that can be found easy. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror
-------------------------------------+-------------------------------------
Reporter: tibbe | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Build | Version: 7.7
System | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets: #8667
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.7 System | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: #8667 None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.7 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: #8667 None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by jyrinx): * status: closed => new * resolution: fixed => Comment: As far as I can tell, the `-r` option isn't working: {{{ $ ./sync-all -r git://github.com/ghc get == running git config core.ignorecase true == running git submodule init == running git submodule update Cloning into 'libffi-tarballs'... Username for 'https://github.com': lukemaurer Password for 'https://lukemaurer@github.com': remote: Repository not found. fatal: repository 'https://github.com/lukemaurer/libffi-tarballs.git/' not found Clone of 'https://github.com/lukemaurer/libffi-tarballs.git' into submodule path 'libffi-tarballs' failed git failed: 256 at ./sync-all line 112. == Checking for old haddock repo == Checking for old binary repo == Checking for old mtl repo == Checking for old Cabal repo == Checking for old time from tarball == Checking for obsolete Git repository URL }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8379: sync-all broken when using the GitHub mirror -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: #8667 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by tibbe): * status: new => closed * resolution: => fixed Comment: sync-all is no longer needed as we're now on an all-git setup with submodules. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8379#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC