jherskovic opened a new issue #1993:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1993


   Hi, 
   
   On https://github.com/apache/incubator-pagespeed-mod/wiki/Development step 
#3, "set up a development client", the instructions result in submodules that 
point to git.apache.org, which no longer exists.
   
   ```
   # If you are not a committer: 
   # update this to your ngx_pagespeed fork's url.
   NGX_PAGESPEED_FORK=g...@github.com:apache/incubator-pagespeed-ngx.git
   
   git clone "$NGX_PAGESPEED_FORK" ngx_pagespeed
   cd ngx_pagespeed
   git submodule init
   git submodule update
   
   # Run these for working with the bleeding edge of of mod_pagespeed:
   # pushd testing-dependencies/mod_pagespeed
   # git checkout master
   # popd
   
   git submodule update --init --recursive --jobs=6
   
   # If you are not a committer:
   # edit .git/config to change the repo url for mod_pagespeed to be
   # the one for your fork (if you need to change mod_pagespeed).
   
   # Optionally - speed up the build by using concurrent jobs:
   # export MAKEFLAGS=-j8
   scripts/build_ngx_pagespeed.sh --devel
   ```
   I suggest adding the following line:
   ```find ./ -iname .gitmodules -exec sed -i 
s,git://git.apache.org,https://github.com/apache,g {} \;``` 
   below the first `git submodule update` to replace all instances with the 
correct URL.
   
   The final version would then be:
   ``` # If you are not a committer: 
   # update this to your ngx_pagespeed fork's url.
   NGX_PAGESPEED_FORK=g...@github.com:apache/incubator-pagespeed-ngx.git
   
   git clone "$NGX_PAGESPEED_FORK" ngx_pagespeed
   cd ngx_pagespeed
   git submodule init
   git submodule update
   
   # Fix submodule URLs to point to GitHub
   find ./ -iname .gitmodules -exec sed -i 
s,git://git.apache.org,https://github.com/apache,g {} \;
   
   # Run these for working with the bleeding edge of of mod_pagespeed:
   # pushd testing-dependencies/mod_pagespeed
   # git checkout master
   # popd
   
   git submodule update --init --recursive --jobs=6
   
   # If you are not a committer:
   # edit .git/config to change the repo url for mod_pagespeed to be
   # the one for your fork (if you need to change mod_pagespeed).
   
   # Optionally - speed up the build by using concurrent jobs:
   # export MAKEFLAGS=-j8
   scripts/build_ngx_pagespeed.sh --devel
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to