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

Releases: kamilsk/go-tools

v0.20.0

07 Apr 20:33
v0.20.0
bc21ada
Compare
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

The improved goimports with the deterministic behaviour

07 Apr 20:32
goimports
Compare
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.19.0

30 Mar 15:22
v0.19.0
8258eba
Compare
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.18.0

24 Feb 10:13
v0.18.0
9c54e80
Compare
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.17.0

22 Jan 10:24
v0.17.0
6c9dc72
Compare
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.16.1

13 Dec 14:49
v0.16.1
14d6090
Compare
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.16.0

30 Nov 15:41
v0.16.0
b010f16
Compare
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.15.0

12 Nov 20:07
v0.15.0
3fe1234
Compare
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.14.0

10 Oct 08:44
v0.14.0
55da0d0
Compare
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.13.0

13 Sep 09:33
v0.13.0
942ba86
Compare
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