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

comments drift downward #16

Open
MikeSpreitzer opened this issue Feb 14, 2023 · 3 comments
Open

comments drift downward #16

MikeSpreitzer opened this issue Feb 14, 2023 · 3 comments

Comments

@MikeSpreitzer
Copy link
Contributor

Expected Behavior

Two or more invocations have the same effect as one.

Actual Behavior

(base) mspreitz@mjs12 test3 % cat main.go
package main

import (
	"context"
	
	// comment
	"flag"
	"net"
	"os"
	"time"
)

func main() {
}

(base) mspreitz@mjs12 test3 % openshift-goimports -m main
I0213 22:54:50.716601    1806 imports.go:227] main.go updated

(base) mspreitz@mjs12 test3 % cat main.go                
package main

import (
	"context"
	"flag"
	"net"

	// comment
	"os"
	"time"
)

func main() {
}

(base) mspreitz@mjs12 test3 % openshift-goimports -m main
I0213 22:54:58.500112    1822 imports.go:227] main.go updated

(base) mspreitz@mjs12 test3 % cat main.go                
package main

import (
	"context"
	"flag"
	"net"
	"os"
	"time"
	// comment
)

func main() {
}

Steps to Reproduce the Problem

  1. Shown above

Specifications

  • Version: latest (commit 4cd858e)
  • Platform: MacOS 12.6
  • Subsystem: go 1.19.5
@MikeSpreitzer
Copy link
Contributor Author

@coreydaley

@coreydaley
Copy link
Contributor

I will try to take a look at it later this week.

@MikeSpreitzer
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants