Closed PVince81 closed 3 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:
Use the README info to setup the basic ocis dev env: https://github.com/owncloud/ocis/blob/master/README.md
Clone the reva repo 'git clone https://github.com/cs3org/reva.git`
Install the hub command to checkout PRs from forks
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
hub pr checkout 674
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)
then in the "ocis" checkout, run the compilation always with make clean build (don't forget the clean)
make clean build
then run the ocis server with: bin/ocis server
bin/ocis server
test that you can connect with curl: curl -u einstein:relativity -X PROPFIND -k https://localhost:9200/remote.php/webdav/ | xmllint --format -
curl -u einstein:relativity -X PROPFIND -k https://localhost:9200/remote.php/webdav/ | xmllint --format -
The getting started section on the docs should cover this concerns 👍 (https://owncloud.github.io/ocis/development/getting-started/)
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:
Use the README info to setup the basic ocis dev env: https://github.com/owncloud/ocis/blob/master/README.md
Clone the reva repo 'git clone https://github.com/cs3org/reva.git`
Install the hub command to checkout PRs from forks
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
In the "ocis" checkout, edit "go.mod" and append the following line:
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)
then in the "ocis" checkout, run the compilation always with
make clean build
(don't forget the clean)then run the ocis server with:
bin/ocis server
test that you can connect with curl:
curl -u einstein:relativity -X PROPFIND -k https://localhost:9200/remote.php/webdav/ | xmllint --format -