diff --git a/Makefile b/Makefile index fe57d89..4b86d76 100644 --- a/Makefile +++ b/Makefile @@ -6,5 +6,5 @@ test: build: test export CGO_ENABLED=0 export GOOS=linux && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_linux export CGO_ENABLED=0 export GOOS=darwin && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_osx - export CGO_ENABLED=0 export GOOS=windows && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_windows + export CGO_ENABLED=0 export GOOS=windows && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_windows.exe export GOOS=$GOOS_OLD \ No newline at end of file diff --git a/extractor/extractor.go b/extractor/extractor.go index 2d3a193..567af66 100644 --- a/extractor/extractor.go +++ b/extractor/extractor.go @@ -134,10 +134,9 @@ func (r *RepoExtractor) initRepo() error { repoName = r.GetRepoName(remoteOrigin) r.repo = &repo{ - RepoName: repoName, - Emails: []string{}, - SuggestedEmails: []string{}, // TODO implement - PrimaryRemoteURL: remoteOrigin, + RepoName: repoName, + Emails: []string{}, + SuggestedEmails: []string{}, // TODO implement } return nil } @@ -615,10 +614,9 @@ func (r *RepoExtractor) upload() error { } type repo struct { - RepoName string `json:"repo"` - Emails []string `json:"emails"` - SuggestedEmails []string `json:"suggestedEmails"` - PrimaryRemoteURL string `json:"primaryRemoteUrl"` + RepoName string `json:"repo"` + Emails []string `json:"emails"` + SuggestedEmails []string `json:"suggestedEmails"` } type req struct {