Skip to content

allow file schema for repositories#27

Merged
smacker merged 2 commits intosrc-d:masterfrom
smacker:allow_file_schema
Nov 14, 2018
Merged

allow file schema for repositories#27
smacker merged 2 commits intosrc-d:masterfrom
smacker:allow_file_schema

Conversation

@smacker
Copy link
Copy Markdown
Contributor

@smacker smacker commented Nov 13, 2018

we need to support file schema too.

we use it in lookout-sdk binary.

Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
@smacker smacker requested a review from carlosms November 13, 2018 17:18
if u.Scheme == "file" {
return &RepositoryInfo{
CloneURL: input,
FullName: u.Path,
Copy link
Copy Markdown
Contributor

@carlosms carlosms Nov 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding also Name: filepath.Base(u.Path)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
Copy link
Copy Markdown
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@smacker
Copy link
Copy Markdown
Contributor Author

smacker commented Nov 14, 2018

ci is failing because can't download binary as usual

@smacker smacker merged commit 2d84e1a into src-d:master Nov 14, 2018
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.

2 participants