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

Build fails: cannot find function copy_string in module crate::clipboard #461

Closed
yurivict opened this issue Dec 22, 2020 · 9 comments · Fixed by #462
Closed

Build fails: cannot find function copy_string in module crate::clipboard #461

yurivict opened this issue Dec 22, 2020 · 9 comments · Fixed by #462

Comments

@yurivict
Copy link

Version 0.11.0 fails to build on FreeBSD 12.2 with rust-1.48.0:


error[E0425]: cannot find function `copy_string` in module `crate::clipboard`
   --> src/components/commitlist.rs:128:31
    |
128 |             crate::clipboard::copy_string(&e.hash_short)?;
    |                               ^^^^^^^^^^^ not found in `crate::clipboard`

error[E0425]: cannot find function `copy_string` in module `crate::clipboard`
   --> src/components/diff.rs:262:35
    |
262 |                 crate::clipboard::copy_string(
    |                                   ^^^^^^^^^^^ not found in `crate::clipboard`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
error: could not compile `gitui`
@extrawurst
Copy link
Owner

image

seems that does not cut it on freebsd

@extrawurst
Copy link
Owner

@yurivict can you please test branch https://github.com/extrawurst/gitui/tree/freebsd-fix ?

@yurivict
Copy link
Author

Now it fails like this:

error[E0432]: unresolved import `which`
  --> src/clipboard.rs:53:9
   |
53 |     use which::which;
   |         ^^^^^ use of undeclared crate or module `which`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `gitui`

@extrawurst
Copy link
Owner

next try: fbba2d0

@yurivict
Copy link
Author

fbba2d0 works.

@extrawurst
Copy link
Owner

Any chance you might be interested in contributing integrating FreeBSD into the CI to prevent this in the future?

@yurivict
Copy link
Author

It looks like GitHub CI currently only supports Linux, MacOS, and Windows:
https://github.com/features/actions

@extrawurst
Copy link
Owner

@yurivict can you boot up freebsd inside docker? then it should be doable in GitHub Actions

@yurivict
Copy link
Author

AFAIK docker doesn't support FreeBSD.

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

Successfully merging a pull request may close this issue.

2 participants