Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appended /v5 to Go module #128

Merged
merged 2 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ This project tries to follow [SemVer 2.0.0](https://semver.org/).

## v5.0.0 (WIP)

- BREAKING: Changed module path from `github.com/iver-wharf/wharf-api` to
`github.com/iver-wharf/wharf-api/v5`. (#128)

- BREAKING: Removed all deprecated environment variable configs, which were
marked as deprecated in v4.2.0/#38. Now all environment variables require the
`WHARF_` prefix. (#87)
Expand Down
12 changes: 6 additions & 6 deletions artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"path/filepath"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/internal/ctxparser"
"github.com/iver-wharf/wharf-api/internal/wherefields"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/internal/ctxparser"
"github.com/iver-wharf/wharf-api/v5/internal/wherefields"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
8 changes: 4 additions & 4 deletions branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"net/http"

"github.com/iver-wharf/wharf-api/internal/ptrconv"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/internal/ptrconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"

"github.com/gin-gonic/gin"
Expand Down
14 changes: 7 additions & 7 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import (
"github.com/dustin/go-broadcast"
"github.com/ghodss/yaml"
"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/internal/coalesce"
"github.com/iver-wharf/wharf-api/internal/wherefields"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/internal/coalesce"
"github.com/iver-wharf/wharf-api/v5/internal/wherefields"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"github.com/iver-wharf/wharf-core/pkg/problem"
"gopkg.in/guregu/null.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/iver-wharf/wharf-api
module github.com/iver-wharf/wharf-api/v5

go 1.16

Expand Down
6 changes: 3 additions & 3 deletions internal/deprecated/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/deprecated/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/deprecated/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
10 changes: 5 additions & 5 deletions internal/deprecated/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/internal/ptrconv"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/internal/ptrconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/deprecated/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"github.com/iver-wharf/wharf-core/pkg/problem"
"gorm.io/gorm"
Expand Down
6 changes: 3 additions & 3 deletions internal/deprecated/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"gorm.io/gorm"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/set/strings_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package set_test
import (
"fmt"

"github.com/iver-wharf/wharf-api/internal/set"
"github.com/iver-wharf/wharf-api/v5/internal/set"
)

func ExampleStrings_loop() {
Expand Down
2 changes: 1 addition & 1 deletion internal/wherefields/wherefields_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wherefields_test
import (
"fmt"

"github.com/iver-wharf/wharf-api/internal/wherefields"
"github.com/iver-wharf/wharf-api/v5/internal/wherefields"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"

"github.com/iver-wharf/wharf-api/docs"
"github.com/iver-wharf/wharf-api/internal/deprecated"
"github.com/iver-wharf/wharf-api/v5/docs"
"github.com/iver-wharf/wharf-api/v5/internal/deprecated"
ginSwagger "github.com/swaggo/gin-swagger"
"github.com/swaggo/gin-swagger/swaggerFiles"
)
Expand Down
2 changes: 1 addition & 1 deletion migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"gorm.io/gorm"
"gorm.io/gorm/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

type healthModule struct{}
Expand Down
4 changes: 2 additions & 2 deletions pkg/modelconv/artifactconv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBArtifactToResponse converts a database artifact to a response artifact.
Expand Down
8 changes: 4 additions & 4 deletions pkg/modelconv/branchconv.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/internal/set"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/internal/set"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBBranchListToResponse converts a list of branches and an optional default
Expand Down
6 changes: 3 additions & 3 deletions pkg/modelconv/buildconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package modelconv
import (
"strconv"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBBuildParamsToResponses converts a slice of database build parameters to a
Expand Down
4 changes: 2 additions & 2 deletions pkg/modelconv/metadataconv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBTimeMetadataToResponse converts a database timestamp metadata to a response
Expand Down
10 changes: 5 additions & 5 deletions pkg/modelconv/projectconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package modelconv

import (
"github.com/ghodss/yaml"
"github.com/iver-wharf/wharf-api/internal/coalesce"
"github.com/iver-wharf/wharf-api/internal/ptrconv"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/internal/coalesce"
"github.com/iver-wharf/wharf-api/v5/internal/ptrconv"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBProjectsToResponses converts a slice of database projects to a slice of
Expand Down
2 changes: 1 addition & 1 deletion pkg/modelconv/projectconv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package modelconv
import (
"testing"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/modelconv/providerconv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBProvidersToResponses converts a slice of database providers to a slice of
Expand Down
4 changes: 2 additions & 2 deletions pkg/modelconv/testresultconv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBTestResultSummariesToResponses converts a slice of database
Expand Down
4 changes: 2 additions & 2 deletions pkg/modelconv/tokenconv.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package modelconv

import (
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
)

// DBTokensToResponses converts a slice of database tokens to a slice of
Expand Down
2 changes: 1 addition & 1 deletion pkg/orderby/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"gorm.io/gorm/clause"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/orderby/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package orderby_test
import (
"fmt"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"gorm.io/driver/postgres"
"gorm.io/gorm"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/orderby/orderby_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package orderby
import (
"testing"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/orderby/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package orderby
import (
"strings"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"gorm.io/gorm/clause"
)

Expand Down
14 changes: 7 additions & 7 deletions project.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/internal/ptrconv"
"github.com/iver-wharf/wharf-api/internal/wherefields"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/internal/ptrconv"
"github.com/iver-wharf/wharf-api/v5/internal/wherefields"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/guregu/null.v4"
Expand Down
12 changes: 6 additions & 6 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/iver-wharf/wharf-api/internal/wherefields"
"github.com/iver-wharf/wharf-api/pkg/model/database"
"github.com/iver-wharf/wharf-api/pkg/model/request"
"github.com/iver-wharf/wharf-api/pkg/model/response"
"github.com/iver-wharf/wharf-api/pkg/modelconv"
"github.com/iver-wharf/wharf-api/pkg/orderby"
"github.com/iver-wharf/wharf-api/v5/internal/wherefields"
"github.com/iver-wharf/wharf-api/v5/pkg/model/database"
"github.com/iver-wharf/wharf-api/v5/pkg/model/request"
"github.com/iver-wharf/wharf-api/v5/pkg/model/response"
"github.com/iver-wharf/wharf-api/v5/pkg/modelconv"
"github.com/iver-wharf/wharf-api/v5/pkg/orderby"
"github.com/iver-wharf/wharf-core/pkg/ginutil"
"github.com/iver-wharf/wharf-core/pkg/problem"
"gorm.io/gorm"
Expand Down
Loading