Skip to content

Commit

Permalink
chore: bump module version to 4 (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio authored Dec 4, 2023
1 parent 4098c62 commit 38c7e12
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ builds:
binary: crawler
main: ./main.go
ldflags:
- -s -w -X github.com/italia/publiccode-crawler/v3/internal.VERSION={{.Version}} -X github.com/italia/publiccode-crawler/v3/internal.BuildTime={{.Date}}
- -s -w -X github.com/italia/publiccode-crawler/v4/internal.VERSION={{.Version}} -X github.com/italia/publiccode-crawler/v4/internal.BuildTime={{.Date}}
env:
- CGO_ENABLED=0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.18 as build

WORKDIR /src
COPY . .
RUN go build -ldflags "-s -w -X 'github.com/italia/publiccode-crawler/v3/internal.VERSION=$(git describe --abbrev=0 --tags)' -X 'github.com/italia/publiccode-crawler/v3/internal.BuildTime=$(date)'"
RUN go build -ldflags "-s -w -X 'github.com/italia/publiccode-crawler/v4/internal.VERSION=$(git describe --abbrev=0 --tags)' -X 'github.com/italia/publiccode-crawler/v4/internal.BuildTime=$(date)'"

FROM alpine:3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# publiccode.yml crawler for the software catalog of Developers Italia

[![Go Report Card](https://goreportcard.com/badge/github.com/italia/publiccode-crawler/v3)](https://goreportcard.com/report/github.com/italia/publiccode-crawler/v3)
[![Go Report Card](https://goreportcard.com/badge/github.com/italia/publiccode-crawler/v4)](https://goreportcard.com/report/github.com/italia/publiccode-crawler/v4)
[![Join the #publiccode channel](https://img.shields.io/badge/Slack%20channel-%23publiccode-blue.svg?logo=slack)](https://developersitalia.slack.com/messages/CAM3F785T)
[![Get invited](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/)

Expand Down
4 changes: 2 additions & 2 deletions apiclient/apiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/hashicorp/go-retryablehttp"
"github.com/italia/publiccode-crawler/v3/common"
internalUrl "github.com/italia/publiccode-crawler/v3/internal"
"github.com/italia/publiccode-crawler/v4/common"
internalUrl "github.com/italia/publiccode-crawler/v4/internal"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/crawl.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package cmd

import (
"github.com/italia/publiccode-crawler/v3/apiclient"
"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v3/crawler"
"github.com/italia/publiccode-crawler/v4/apiclient"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/italia/publiccode-crawler/v4/crawler"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/download_publishers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/url"
"os"

"github.com/italia/publiccode-crawler/v3/common"
ymlurl "github.com/italia/publiccode-crawler/v3/internal"
"github.com/italia/publiccode-crawler/v4/common"
ymlurl "github.com/italia/publiccode-crawler/v4/internal"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/one.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/url"
"regexp"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v3/crawler"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/italia/publiccode-crawler/v4/crawler"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/italia/publiccode-crawler/v3/internal"
"github.com/italia/publiccode-crawler/v4/internal"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion common/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io/ioutil"

url "github.com/italia/publiccode-crawler/v3/internal"
url "github.com/italia/publiccode-crawler/v4/internal"
"gopkg.in/yaml.v2"
)

Expand Down
10 changes: 5 additions & 5 deletions crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (

"github.com/alranel/go-vcsurl/v2"
httpclient "github.com/italia/httpclient-lib-go"
"github.com/italia/publiccode-crawler/v3/apiclient"
"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v3/git"
"github.com/italia/publiccode-crawler/v3/metrics"
"github.com/italia/publiccode-crawler/v3/scanner"
"github.com/italia/publiccode-crawler/v4/apiclient"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/italia/publiccode-crawler/v4/git"
"github.com/italia/publiccode-crawler/v4/metrics"
"github.com/italia/publiccode-crawler/v4/scanner"
publiccode "github.com/italia/publiccode-parser-go/v3"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
Expand Down
4 changes: 2 additions & 2 deletions git/clone_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/exec"
"path/filepath"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v3/metrics"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/italia/publiccode-crawler/v4/metrics"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion git/repo_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"time"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v4/common"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
git "gopkg.in/src-d/go-git.v4"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/italia/publiccode-crawler/v3
module github.com/italia/publiccode-crawler/v4

require (
github.com/alranel/go-vcsurl/v2 v2.0.2
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/italia/publiccode-crawler/v3/cmd"
"github.com/italia/publiccode-crawler/v4/cmd"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion scanner/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/url"
"strings"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/ktrysmt/go-bitbucket"
log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion scanner/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/google/go-github/v43/github"
"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v4/common"
log "github.com/sirupsen/logrus"
"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion scanner/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path"
"strings"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v4/common"
"github.com/xanzy/go-gitlab"
)

Expand Down
2 changes: 1 addition & 1 deletion scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"net/url"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/italia/publiccode-crawler/v4/common"
)

var ErrPubliccodeNotFound = errors.New("publiccode.yml not found")
Expand Down

0 comments on commit 38c7e12

Please sign in to comment.