Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Releases: kamilsk/go-tools

v0.12.0

11 Aug 19:00
v0.12.0
eb8a2d4

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install octolab/tap/goimports.
  • The installation is also possible by
    $ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin

Related issues

made with ❤️ for everyone by OctoLab

v0.11.1

02 Aug 20:27
v0.11.1
c322deb

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    $ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin

Related issues

made with ❤️ for everyone by OctoLab

v0.11.0

06 Jul 06:21
v0.11.0
70ae3e0

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.10.0

16 Jun 09:42
v0.10.0
924aba2

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.9.3

01 Jun 19:21
v0.9.3
76f03d5

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.9.2

01 Jun 19:19
v0.9.2
6ec0b94

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.9.1

18 May 07:21
v0.9.1
c481184

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.9.0

18 May 07:21
v0.9.0
a35dec1

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.8.0

09 Apr 07:44
v0.8.0
ef4a309

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues

v0.7.0

12 Mar 19:44
v0.7.0
805391f

Choose a tag to compare

Motivation

As a Go developer, I actively use goimports as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

the output will be

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

The proper result for me is

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

So, I need to patch its behaviour and make a result deterministic.

What's changed

  • The goimports has the deterministic behaviour.
  • The tool is available by brew install kamilsk/tap/goimports.
  • The installation is also possible by
    curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin.

Related issues