Skip to content

Fix removal of kubebuilder imports marker #135

Description

@avorima

What version of GCI are you using?

v0.9.0

Reproduce Steps

package main

import (
	"os"
	"fmt"
	// +kubebuilder:scaffold:imports
)

Run gci print .

What did you expect to see?

package main

import (
        "fmt"
        "os"
        // +kubebuilder:scaffold:imports
)

What did you see instead?

package main

import (
        "fmt"
        "os"
)

This breaking change was introduced in #120. You can verify by checking the output of v0.8.2 vs v0.8.3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions