owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.38k stars 181 forks source link

Docs for setting up dev env with branches from other services/repos #227

Closed PVince81 closed 3 years ago

PVince81 commented 4 years ago

Here are my notes to add docs about setting up dev env with other branches:

The example focusses on checking out a specific PR for a change in the reva repo:

  1. Use the README info to setup the basic ocis dev env: https://github.com/owncloud/ocis/blob/master/README.md

  2. Clone the reva repo 'git clone https://github.com/cs3org/reva.git`

  3. Install the hub command to checkout PRs from forks

  4. In the "reva" repo, checkout the PR for ocdav which is https://github.com/cs3org/reva/pull/674, using the command: hub pr checkout 674

  5. In the "ocis" checkout, edit "go.mod" and append the following line:

    replace github.com/cs3org/reva => ../reva

    the path "../reva" is the path to your reva checkout (this will replace the reva library "deep replace" as used by other deps like ocis-reva)

  6. then in the "ocis" checkout, run the compilation always with make clean build (don't forget the clean)

  7. then run the ocis server with: bin/ocis server

  8. test that you can connect with curl: curl -u einstein:relativity -X PROPFIND -k https://localhost:9200/remote.php/webdav/ | xmllint --format -

PVince81 commented 4 years ago
refs commented 3 years ago

The getting started section on the docs should cover this concerns 👍 (https://owncloud.github.io/ocis/development/getting-started/)