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

On 1.8.2 can't run swag fmt on a different filesystem from /tmp #1203

Open
moniquelive opened this issue May 16, 2022 · 4 comments
Open

On 1.8.2 can't run swag fmt on a different filesystem from /tmp #1203

moniquelive opened this issue May 16, 2022 · 4 comments

Comments

@moniquelive
Copy link

Describe the bug
Running swag fmt fails if project dir is on a different filesystem than /tmp

To Reproduce
Steps to reproduce the behavior:

  1. run swag fmt on a folder in a different filesystem than /tmp

Expected behavior
Run as previous version

Screenshots
2022/05/16 13:38:25 fmt: rename /tmp/config.go2566375799 config.go: invalid cross-device link

Your swag version
1.8.2

Your go version
1.18

Desktop (please complete the following information):

  • OS: Linux (PopOS 22.04)
  • FS: Btrfs

Additional context
It was working fine until last week

@iTanken
Copy link

iTanken commented May 17, 2022

Perhaps this problem can be temporarily resolved with the following command:

go run github.com/swaggo/swag/cmd/swag@v1.8.1 fmt

go run github.com/swaggo/swag/cmd/swag@v1.8.1 init

@xylophone21
Copy link

any update about this issue?

@umurpza
Copy link

umurpza commented Jun 8, 2022

I am also having this problem.

@tanopanta
Copy link
Contributor

I had the same problem, so I issued a PR #1241

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

5 participants