Skip to content

Commit

Permalink
Fix package files pagination (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: Sune Keller <absukl@almbrand.dk>
  • Loading branch information
sirlatrom authored Mar 16, 2021
1 parent be73ea5 commit 8d946cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ func (g *gitLab) Fetch() (*File, error) {
for _, v := range packages {
if strings.TrimPrefix(v.Version, "v") == tagVersion {
totalPages := -1
for page := 1; page != totalPages; page++ {
for page := 0; page != totalPages; page++ {
packageFiles, resp, err := g.client.Packages.ListPackageFiles(projectPath, v.ID, &gitlab.ListPackageFilesOptions{
Page: page,
Page: page + 1,
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 8d946cb

Please sign in to comment.