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

assignment mismatch: 2 variables but scanner.Run returns 3 values #75

Open
gbiagomba opened this issue Jan 17, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@gbiagomba
Copy link

Hello,

I tried installing the tool on my MacBook and I got this err cmd/gorsair.go:68:18: assignment mismatch: 2 variables but scanner.Run returns 3 values. I looked at the code block and noticed the potential issue:

	results, err := scanner.Run()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

I changed it to handle 3 outputs. I am only creating it here rather than a pool request bc I wasn't sure if it would break anything

	results, _, err := scanner.Run()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
@Ullaakut
Copy link
Owner

Hi @gbiagomba !

Thanks for opening this issue. It seems I should archive this project, since I am no longer maintaining it. The reason why this broke is that its dependency, my nmap repository, has had breaking changes since this code was written, and when you built it locally you pulled the latest versions of its dependencies which caused its failure.

I'd recommend looking for an alternative solution to this repository since it is no longer maintained unfortunately!

Good luck and have a nice day!

@Ullaakut Ullaakut added the bug Something isn't working label Jan 19, 2024
@Ullaakut Ullaakut self-assigned this Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants