Skip to content

Commit

Permalink
Merge branch 'master' into fix/remove-async-one-off
Browse files Browse the repository at this point in the history
  • Loading branch information
SCedricThomas committed Aug 20, 2024
2 parents 766f2b2 + 3d7de67 commit f2c69ce
Show file tree
Hide file tree
Showing 481 changed files with 14,987 additions and 21,898 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
id: new-from-rev
run: echo "NEW_FROM_REV=$( git rev-parse origin/master )" >> "$GITHUB_OUTPUT"
- name: "Execute golangci-lint on a pull request"
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
# The `only-new-issues` flag is not working (https://github.com/golangci/golangci-lint-action/issues/531).
# We rather decided to use the suggestion from the FAQ (https://golangci-lint.run/usage/faq/#how-to-integrate-golangci-lint-into-large-project-with-thousands-of-issues) and use `--new-from-rev`
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Get golangci-lint configuration file
run: wget --output-document=$(pwd)/.golangci.yml https://sc-devtools.s3.eu-west-1.amazonaws.com/golang-ci/golangci.yml
- name: "Execute golangci-lint on the master branch"
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
# The `only-new-issues` flag is not working (https://github.com/golangci/golangci-lint-action/issues/531).
# We rather decided to use the suggestion from the FAQ (https://golangci-lint.run/usage/faq/#how-to-integrate-golangci-lint-into-large-project-with-thousands-of-issues) and use `--new-from-rev`
Expand Down Expand Up @@ -92,9 +92,9 @@ jobs:
go-version-file: "go.mod"
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -120,9 +120,9 @@ jobs:
go-version-file: "go.mod"
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: "~> v2"
args: release --config .goreleaser-windows.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .goreleaser-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# We need a specific GoRelease file for Windows because we don't want to use Go cross compile feature. We prefer compiling on an actual Windows.
version: 2
before:
hooks:
- go mod tidy
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod tidy
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
### To be Released

* fix(one-off): remove async one-off ([PR#1060](https://github.com/Scalingo/cli/pull/1060))
* fix(cmd): addons-info working for non-db addons ([PR#1055](https://github.com/Scalingo/cli/pull/1055))
* feat(database/users): use API DatabaseUserResetPassword method for resetting password

### 1.32.0

* feat(domains): `domains-add` now supports `--no-letsencrypt` flag to completely disable Let's Encrypt certificat generation ([PR#1058](https://github.com/Scalingo/cli/pull/1058))
* fix(cmd): `addons-info` working for non-db addons ([PR#1055](https://github.com/Scalingo/cli/pull/1055))

### 1.31.0

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Scalingo-CLI v1.31.0
# Scalingo-CLI v1.32.0

![publish workflow](https://github.com/Scalingo/cli/actions/workflows/publish.yml/badge.svg)

Expand Down Expand Up @@ -56,7 +56,7 @@ USAGE:
scalingo [global options] command [command options] [arguments...]
VERSION:
1.31.0
1.32.0
AUTHOR:
Scalingo Team <[email protected]>
Expand Down Expand Up @@ -263,12 +263,12 @@ the commit for the version bump.

```bash
git checkout <base commit ID>
git checkout -b v1.31.0
git checkout -b v1.32.0
git cherry-pick -m 1 <commit ID number 1>
git cherry-pick -m 1 <commit ID number 2>
...
git cherry-pick -m 1 <commit ID number X>
git push --set-upstream origin v1.31.0
git push --set-upstream origin v1.32.0
```

### New Version Bump
Expand All @@ -283,7 +283,7 @@ Bump new version number in:
And commit these changes:

```bash
version="1.31.0"
version="1.32.0"

git switch --create release/${version}
git add .
Expand Down Expand Up @@ -313,6 +313,6 @@ It serves as cache between GitHub and our customers for a more efficient check o

You can now update the [changelog](https://doc.scalingo.com/changelog) and tweet about it!

> [Changelog] CLI - Release of version 1.31.0 https://cli.scalingo.com - More news at https://changelog.scalingo.com #cli #paas #changelog #bugfix
> [Changelog] CLI - Release of version 1.32.0 https://cli.scalingo.com - More news at https://changelog.scalingo.com #cli #paas #changelog #bugfix
Add in a tweets thread the changelog of this new version.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.31.0
1.32.0
2 changes: 1 addition & 1 deletion addons/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion addons/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Destroy(ctx context.Context, app, addonID string) error {
Expand Down
2 changes: 1 addition & 1 deletion addons/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/db"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

// Info is the command handler displaying static information about one given addon
Expand Down
2 changes: 1 addition & 1 deletion addons/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Provision(ctx context.Context, app, addon, plan string) error {
Expand Down
2 changes: 1 addition & 1 deletion addons/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Upgrade(ctx context.Context, app, addonID, plan string) error {
Expand Down
2 changes: 1 addition & 1 deletion alerts/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion alerts/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion apps/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Create(ctx context.Context, appName string, remote string, buildpack string) error {
Expand Down
2 changes: 1 addition & 1 deletion apps/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/events"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Events(ctx context.Context, app string, paginationOpts scalingo.PaginationOpts) error {
Expand Down
4 changes: 2 additions & 2 deletions apps/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/olekukonko/tablewriter"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
"github.com/Scalingo/go-utils/errors/v2"
)

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

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/logs"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
)

type WSEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion apps/one_off_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func OneOffStop(ctx context.Context, appName, oneOffLabel string) error {
Expand Down
2 changes: 1 addition & 1 deletion apps/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
scalingo "github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
errors "github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion apps/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"gopkg.in/errgo.v1"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Restart(ctx context.Context, app string, sync bool, args []string) error {
Expand Down
4 changes: 2 additions & 2 deletions apps/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"github.com/Scalingo/cli/io"
"github.com/Scalingo/cli/signals"
"github.com/Scalingo/cli/term"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
errors "github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions apps/run/run_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"gopkg.in/errgo.v1"

"github.com/Scalingo/cli/httpclient"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
)

type UpdateTtyParams struct {
Expand Down
2 changes: 1 addition & 1 deletion apps/run/run_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"os"

scalingo "github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func NotifiedSignals() chan os.Signal {
Expand Down
6 changes: 3 additions & 3 deletions apps/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v6/http"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
"github.com/Scalingo/go-scalingo/v7/http"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion apps/sendsignal.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion apps/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"gopkg.in/errgo.v1"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion autoscalers/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func Add(ctx context.Context, app string, params scalingo.AutoscalerAddParams) error {
Expand Down
2 changes: 1 addition & 1 deletion autoscalers/get_from_container_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion autoscalers/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/Scalingo/cli/cmd/autocomplete"
"github.com/Scalingo/cli/detect"
"github.com/Scalingo/cli/utils"
scalingo "github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/autocomplete/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"gopkg.in/errgo.v1"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
)

type appsCache struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/autocomplete/collaborators_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"gopkg.in/errgo.v1"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7"
"github.com/Scalingo/go-scalingo/v7/debug"
)

func CollaboratorsAddAutoComplete(c *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/autocomplete/current_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Scalingo/cli/detect"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7/debug"
)

func CurrentAppCompletion(c *cli.Context) string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/autocomplete/flag_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v7/debug"
)

func FlagAppAutoComplete(c *cli.Context) bool {
Expand Down
2 changes: 1 addition & 1 deletion cmd/autoscalers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/Scalingo/cli/cmd/autocomplete"
"github.com/Scalingo/cli/detect"
"github.com/Scalingo/cli/utils"
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

var (
Expand Down
Loading

0 comments on commit f2c69ce

Please sign in to comment.