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

panic: clipboard: cannot use when CGO_ENABLED=0 #25

Closed
emisjerry opened this issue Feb 28, 2022 · 4 comments
Closed

panic: clipboard: cannot use when CGO_ENABLED=0 #25

emisjerry opened this issue Feb 28, 2022 · 4 comments

Comments

@emisjerry
Copy link

emisjerry commented Feb 28, 2022

請問:是macOS需要做權限方面的設定嗎?應如何解決?

[18:36:32] jerry ➜ ~/Documents » upgit :clipboard -f markdown-simple
panic: clipboard: cannot use when CGO_ENABLED=0

goroutine 1 [running]:
golang.design/x/clipboard.initialize(...)
	/home/runner/go/pkg/mod/golang.design/x/clipboard@v0.6.0/clipboard_nocgo.go:9
golang.design/x/clipboard.Init(...)
	/home/runner/go/pkg/mod/golang.design/x/clipboard@v0.6.0/clipboard.go:102
main.loadClipboard(0x12c2fe0?)
	/home/runner/work/upgit/upgit/main.go:236 +0x66
main.main()
	/home/runner/work/upgit/upgit/main.go:99 +0x41b
[18:40:12] jerry ➜ ~/Documents »
@pluveto
Copy link
Owner

pluveto commented Feb 28, 2022

This issue should have been resolved. Please check if you have updated it to the latest version

@emisjerry
Copy link
Author

After upgraded to the latest release, upgit responsed another message:

[17:45:24] jerry ➜ ~/Documents » upgit table-editor-3.png -f markdown-simple
open /Users/jerry/bin/extensions: no such file or directory%
[17:45:37] jerry ➜ ~/Documents »

upgit had been copied to ~/bin.

@pluveto
Copy link
Owner

pluveto commented Mar 5, 2022

Note that for new version the config file layout is changed. And create extensions dir if required.

FYI: https://github.com/pluveto/upgit/blob/main/config.sample.toml

@emisjerry
Copy link
Author

Thanks for your reply, i'll try again if i'm avaiable.

@pluveto pluveto closed this as completed Jan 21, 2023
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