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

ubuntu can not upload image in clipboard #58

Open
cbweixin opened this issue Jan 24, 2023 · 1 comment
Open

ubuntu can not upload image in clipboard #58

cbweixin opened this issue Jan 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cbweixin
Copy link

gabriel@gabriel-HP-ProDesk-600-G2-SFF:~$ upgit :clipboard
panic: clipboard: cannot use when CGO_ENABLED=0

goroutine 1 [running]:
golang.design/x/clipboard.initialize(...)
	/Users/runner/go/pkg/mod/golang.design/x/[email protected]/clipboard_nocgo.go:9
golang.design/x/clipboard.Init(...)
	/Users/runner/go/pkg/mod/golang.design/x/[email protected]/clipboard.go:102
main.handleClipboard()
	/Users/runner/work/upgit/upgit/main.go:373 +0x46a
main.mainCommand()
	/Users/runner/work/upgit/upgit/main.go:59 +0x85
main.main()
	/Users/runner/work/upgit/upgit/main.go:45 +0x7b
gabriel@gabriel-HP-ProDesk-600-G2-SFF:~$ go version
go version go1.19.5 linux/amd64
gabriel@gabriel-HP-ProDesk-600-G2-SFF:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
gabriel@gabriel-HP-ProDesk-600-G2-SFF:~$ 

I tested uploading image file, it works fine

gabriel@gabriel-HP-ProDesk-600-G2-SFF:~$ upgit Pictures/Screenshots/Screenshot\ from\ 2023-01-24\ 10-40-02.png 
https://raw.githubusercontent.com/cbweixin/seleniumdemo/master/2023/01/upgit_20230124_1674585891.png

thanks a lot for your help!

@pluveto
Copy link
Owner

pluveto commented Jan 25, 2023

Thanks for your feedback. We'll later provide a build with CGO_ENABLED=1.

@pluveto pluveto added the bug Something isn't working label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants