Skip to content

Commit

Permalink
Rename Miniflux package name to follow Go module naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Aug 10, 2023
1 parent c980dfe commit 00bddbb
Show file tree
Hide file tree
Showing 315 changed files with 1,135 additions and 1,135 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DOCKER_IMAGE := miniflux/miniflux
VERSION := $(shell git describe --tags --abbrev=0)
COMMIT := $(shell git rev-parse --short HEAD)
BUILD_DATE := `date +%FT%T%z`
LD_FLAGS := "-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.Commit=$(COMMIT)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'"
LD_FLAGS := "-s -w -X 'miniflux.app/v2/version.Version=$(VERSION)' -X 'miniflux.app/v2/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/version.BuildDate=$(BUILD_DATE)'"
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
DEB_IMG_ARCH := amd64
Expand Down Expand Up @@ -122,7 +122,7 @@ integration-test:
./miniflux-test >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid"

while ! nc -z localhost 8080; do sleep 1; done
go test -v -tags=integration -count=1 miniflux.app/tests
go test -v -tags=integration -count=1 miniflux.app/v2/tests

clean-integration-test:
@ kill -9 `cat /tmp/miniflux.pid`
Expand Down
6 changes: 3 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
"net/http"

"miniflux.app/storage"
"miniflux.app/worker"
"miniflux.app/v2/storage"
"miniflux.app/v2/worker"

"github.com/gorilla/mux"
)
Expand Down
10 changes: 5 additions & 5 deletions api/category.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
json_parser "encoding/json"
"net/http"
"time"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/validator"
)

func (h *handler) createCategory(w http.ResponseWriter, r *http.Request) {
Expand Down
22 changes: 11 additions & 11 deletions api/entry.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
json_parser "encoding/json"
Expand All @@ -11,16 +11,16 @@ import (
"strings"
"time"

"miniflux.app/config"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/integration"
"miniflux.app/model"
"miniflux.app/proxy"
"miniflux.app/reader/processor"
"miniflux.app/storage"
"miniflux.app/url"
"miniflux.app/validator"
"miniflux.app/v2/config"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/integration"
"miniflux.app/v2/model"
"miniflux.app/v2/proxy"
"miniflux.app/v2/reader/processor"
"miniflux.app/v2/storage"
"miniflux.app/v2/url"
"miniflux.app/v2/validator"
)

func (h *handler) getEntryFromBuilder(w http.ResponseWriter, r *http.Request, b *storage.EntryQueryBuilder) {
Expand Down
12 changes: 6 additions & 6 deletions api/feed.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
json_parser "encoding/json"
"net/http"
"time"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
feedHandler "miniflux.app/reader/handler"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
feedHandler "miniflux.app/v2/reader/handler"
"miniflux.app/v2/validator"
)

func (h *handler) createFeed(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 3 additions & 3 deletions api/icon.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
"net/http"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
)

func (h *handler) feedIcon(w http.ResponseWriter, r *http.Request) {
Expand Down
10 changes: 5 additions & 5 deletions api/middleware.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
"context"
"net/http"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
)

type middleware struct {
Expand Down
10 changes: 5 additions & 5 deletions api/opml.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
"net/http"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/http/response/xml"
"miniflux.app/reader/opml"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/http/response/xml"
"miniflux.app/v2/reader/opml"
)

func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
Expand Down
4 changes: 2 additions & 2 deletions api/payload.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
"miniflux.app/model"
"miniflux.app/v2/model"
)

type feedIconResponse struct {
Expand Down
10 changes: 5 additions & 5 deletions api/subscription.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
json_parser "encoding/json"
"net/http"

"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/reader/subscription"
"miniflux.app/validator"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/reader/subscription"
"miniflux.app/v2/validator"
)

func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) {
Expand Down
10 changes: 5 additions & 5 deletions api/user.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"

import (
json_parser "encoding/json"
"errors"
"net/http"

"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/validator"
)

func (h *handler) currentUser(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion cli/ask_credentials.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"bufio"
Expand Down
12 changes: 6 additions & 6 deletions cli/cleanup_tasks.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"time"

"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/metric"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/metric"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
)

func runCleanupTasks(store *storage.Storage) {
Expand Down
16 changes: 8 additions & 8 deletions cli/cli.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"flag"
"fmt"

"miniflux.app/config"
"miniflux.app/database"
"miniflux.app/locale"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/ui/static"
"miniflux.app/version"
"miniflux.app/v2/config"
"miniflux.app/v2/database"
"miniflux.app/v2/locale"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
"miniflux.app/v2/ui/static"
"miniflux.app/v2/version"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions cli/create_admin.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"fmt"
"os"

"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/validator"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
"miniflux.app/v2/validator"
)

func createAdmin(store *storage.Storage) {
Expand Down
16 changes: 8 additions & 8 deletions cli/daemon.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"context"
Expand All @@ -11,13 +11,13 @@ import (
"syscall"
"time"

"miniflux.app/config"
httpd "miniflux.app/http/server"
"miniflux.app/logger"
"miniflux.app/metric"
"miniflux.app/storage"
"miniflux.app/systemd"
"miniflux.app/worker"
"miniflux.app/v2/config"
httpd "miniflux.app/v2/http/server"
"miniflux.app/v2/logger"
"miniflux.app/v2/metric"
"miniflux.app/v2/storage"
"miniflux.app/v2/systemd"
"miniflux.app/v2/worker"
)

func startDaemon(store *storage.Storage) {
Expand Down
4 changes: 2 additions & 2 deletions cli/flush_sessions.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"fmt"
"os"

"miniflux.app/storage"
"miniflux.app/v2/storage"
)

func flushSessions(store *storage.Storage) {
Expand Down
6 changes: 3 additions & 3 deletions cli/health_check.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"

import (
"net/http"
"time"

"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
)

func doHealthCheck(healthCheckEndpoint string) {
Expand Down
Loading

0 comments on commit 00bddbb

Please sign in to comment.