-
Notifications
You must be signed in to change notification settings - Fork 47
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
Manpages placed incorrectly #163
Comments
good observation, it'd be great if we could support manpages as well. Do you have any idea about how |
I can't tell about MIME types at download time, but I've done a quick test and they can be sorted out locally after downloading: $ file ~/.local/bin/gocryptfs
~/.local/bin/gocryptfs: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
$ echo $?
0
$ file ~/.local/share/man/man1/gocryptfs.1
~/.local/share/man/man1/gocryptfs.1: troff or preprocessor input, ASCII text
$ echo $?
0
$ file --mime-type ~/.local/share/man/man1/gocryptfs.1
~/.local/share/man/man1/gocryptfs.1: text/troff
$ echo $?
0
$ file --brief --mime-type ~/.local/share/man/man1/gocryptfs.1
text/troff
$ echo $?
0
|
Checking on my other bug I stumbled on this -- this is a tricky one because there's technically no real standard for how these are included in a simple tarball. I'd suggest that if the goal is to avoid essentially becoming a package manager, it might be better to have a hook of some kind. Have a directory like ~/.config/bin/user_scripts/ and then whenever updating a package, if an executable file named exists in that path, then run that script, and provide things like the path to the downloaded package to it in the environment. Any custom post-install work can happen there, and your core tool doesn't have to worry about all the edge cases. |
@mbainter what package did you come across with man packages? What I was thinking of doing initially is a very basic approach to check if tar files have a Thoughts? |
I have a few that have that and shell completion as well. It's just a question of how far down that road you want to go, for something originally intended to be for simple binary installs. Systeroid is an example, but it has its man pages under a There are obviously solutions to all of these -- it's just a question of if the implementation effort is worth it, and what kind of additional support load it might generate for edge-cases. |
That's ok. I wasn't thinking about the whole path but more about the filename particularly. My very naive approach was to look for any ASCII text file withing the package that as the |
I think a simple mapping table of |
I would love to see this feature implemented. I would like to help with it but I've never touched go lang before. Would you mind giving me some tips of where would you implement this feature? A quick read through the code gives me the impression that bin is too centered about finding one specific file for each source |
I've just started to use
bin
and found it awesome. Thanks for sharing!As I was installing an updated gocryptfs with
bin
for the first time, if offered 4 matches:I've installed the 2 binaries in
~/.local/bin/
just fine, but the manpages went also to the same dir withchmod +x
, instead of~/.local/share/man/man1/
.No big deal, I've fixed manually. But I guess checking the file type would be fairly reasonable. However, not sure if it's out of the scope of the tool and it's not a path you'll want to follow. Reporting it, just in case.
The text was updated successfully, but these errors were encountered: