Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go-borges] Use go-borges to access repositories #888

Merged
merged 16 commits into from
Jun 20, 2019

Conversation

jfontan
Copy link
Contributor

@jfontan jfontan commented Jun 19, 2019

Note: These are the changes from branch go-borges-integration rebased with the latest version in master plus fixes to new tests.

  • Now gitbase uses go-borges to access repositories
    • The type of files in each directory has to be specified (#867)
    • Supports new rooted repository format and separates references and objects from each repo (New borges design borges#389)
  • Changed cli to be able to specify different formats (#866)

go-borges still does not support non rooted siva files (the ones generated by old borges). We are working on adding compatibility but all the changes for gitbase are done (even cli to support this). It may be better to release a final version of 0.21.0 and start a 0.22.0-beta with these changes.

  • I updated the documentation explaining the new behavior if any.
  • I updated CHANGELOG.md file adding the new feature or bug fix.
  • I updated go-mysql-server using make upgrade command if applicable.
  • I added or updated examples if applicable.
  • I checked that changes on schema are reflected into the documentation, if applicable.

@jfontan jfontan requested review from a team June 19, 2019 17:28
@erizocosmico
Copy link
Contributor

Other than GolangCI stuff, if CI passes, LGTM

@jfontan jfontan force-pushed the go-borges-rebase branch from bdefd6a to 93bde04 Compare June 20, 2019 08:29
jfontan added 16 commits June 20, 2019 10:45
Checksum:

Now repositories are not returned in an specific order. Checksum is
calculated per repository and ordered before calculating the final one.

Signed-off-by: Javi Fontan <[email protected]>
Global format can be specified with --format, --bare, --bucket and
--rooted. To mix directories the format can be specified as a file URL:

    -d file:///path/to/library?format=siva&bucket=4&rooted=false

Also:

* Updated builder container to go 1.12
* Added SIVA env to docker init.sh to configure gitbase to use siva
library

Signed-off-by: Javi Fontan <[email protected]>
Fixed documentation, typos and erroneous messages. Also library URL
parameters are converted to lowercase before parsing.

Signed-off-by: Javi Fontan <[email protected]>
Signed-off-by: Javi Fontan <[email protected]>
Also fix some repositories left open.

Signed-off-by: Javi Fontan <[email protected]>
Signed-off-by: Javi Fontan <[email protected]>
Signed-off-by: Javi Fontan <[email protected]>
@jfontan jfontan force-pushed the go-borges-rebase branch from 93bde04 to 044094c Compare June 20, 2019 08:51
@jfontan
Copy link
Contributor Author

jfontan commented Jun 20, 2019

Rebased with latest changes in master and fixed linting errors.

@ajnavarro
Copy link
Contributor

ping @kuba-- @juanjux for a review

@ajnavarro ajnavarro merged commit 13ed1b4 into src-d:master Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants