Skip to content

Commit

Permalink
Merge pull request #80 from ivanilves/fix/none-auth-and-gcr
Browse files Browse the repository at this point in the history
Fix some quirks while operating gcr.io
  • Loading branch information
ivanilves authored Oct 20, 2017
2 parents 5786f54 + 1565f72 commit a8e8def
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auth/none/none.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (tr TokenResponse) ExpiresIn() int {

// AuthHeader returns contents of the Authorization HTTP header
func (tr TokenResponse) AuthHeader() string {
return tr.Method() + " " + tr.Token()
return ""
}

// RequestToken does pretty little here...
Expand Down
6 changes: 6 additions & 0 deletions tag/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ func FetchTags(registry, repo, authorization string, concurrentRequests int, fil
dr := <-ch

if dr.Error != nil {
if strings.Contains(dr.Error.Error(), "404 Not Found") {
println(dr.Error.Error())

continue
}

return nil, dr.Error
}

Expand Down

0 comments on commit a8e8def

Please sign in to comment.