add a option to see the 'bombadillo' Version #39
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#39
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have just looked at bombadillo and find it very well done!
One thing I noticed is that I did not find an option to have the bombadillo version displayed.
Like: 'bombadillo -v'
THank you for checking it out and for the kind words :) That would indeed be a good addition. I have been really bad about doing any kind of proper version numbering but hope to be cleaning that up with the 2.0 release. Adding a flag for
-v
is a super easy addition. I will add it into the 2.0 build this morning.If you are interested, you can try out 2.0 by pulling and building the branch v2-restructure.
It adds the following:
:check [linknumber]
):Search [words to search go here]
)I'll see if I can get the
-v
added to both versions today actually. Should be simple enough.wow sloum! That sounds great =)
Many thanks for your effort.
I got the
v2-restructure
branch updated to include a version number as a const and the version information can now be printed viabombadillo -v
. At present,bombadillo -h
only shows the-v
flag and no usage indicator for opening to a url, I'll add that soon (but think I want to get file saving forking in 2.0 first).Thanks for the great suggestion! Please let me know if you end up using v2.0.0 and notice any bugs. I've been working through them as they come up (and there have been many, lol).
I'll close this issue out once I update the current main branch (
v1.something
).tested this locally, works well :)
Hello,
i have try to test it. but no idea how it works to update bombadillo..
-> dial tcp: lookup -v: no such host
Hi @creme
From that error message, it seems there is an issue building the mailcap library used by Bombadillo. This failure prevents installation of Bombadillo, and when you are running
bombadillo -v
at the end, it is an older version running.I was not able to reproduce this issue on my system. I tried a new repo, which also worked correctly. These are the steps I followed:
git clone https://tildegit.org/sloum/bombadillo.git
cd bombadillo
git checkout v2-restructure
go build
./bombadillo -v
A version number was returned as expected.
What could cause this to happen? I'm not sure, but suggest reviewing the following:
go build
then./bombadillo -v
go1.12.5 linux/amd64
, could an older version be incompatible with mailcap?If you get the time to try some of these out, let me know how you go. If my suggestions don't help, @sloum might have some other ideas on this too.
@asdf
thanks for your help! Then i use the latest go version it works ;)
very nice! Thanks
@creme that's great news, glad I could help.
Are you able to say which version of go you were using before?
i have use the default debian 10 - go version.
now i use the latest go version (installed as bin):
Interesting. I would have thought that 1.11 would have been fine. Maybe mailcap requires 1.12+. I wonder what build flags go supports. It might be a good idea to have the mailcap functionality be optional and be able to be selected for at build time. It is really a fairly small thing that it provides (the ability to open files from gemini in an appropriate program based on their mimetype). We could always remove it for a simpler install and just have files from non-text mimetypes download without trying to open them. Presently, a user is presented the option to save or to open (which, saves as a temp file and opens).
I am closing this issue now; we are getting pretty close to 2.0.0 release and this option is available on the current
develop
branch and will be inmaster
in the not distant future.Also of note is that with the mailcap dependency removed (it was just removed) go
1.11+
should be fine again (which doesn't help creme since they already upgraded, but if they reinstall or need it on a different system, stock debian go should be fine).Hello @sloum,
thanks for your great work!
I have test the develop-branch. This is really fun and looks really damn good!
Of course, I also tried the new '-v' command ;)
there is still a problem.. I test it with go version go1.13.2 linux/amd64
Hi there. I'm not sure I understand what the problem is. Any more details you can provide would be very helpful :)
Hello, thanks for the fast reply.
i try again to desc. the problem. In the Branch "v2-restructure" works the
bombadillo -v
command corretly.now i test the new "develop" Branch but i think the output of
bombadillo -v
is broken.Output:
go version: 1.13.2
Hmmmm. Oh! Did you install via the makefile or did you use the go toolchain?
The makefile supplies the values during the build, so their absence could be caused by not using the makefile for the build.
If that is a possible situation try running the following:
You can, of course, do a system-wide install with:
Let me know if that solves the issue. :)
Thanks again sloum,
the 'local'-build way works fine for me. =)
My first try was only a
go install
.I try also the global build way.. this stops with the folling errors:
hmmm... That is very weird. I just uninstalled, pulled develop, and ran
sudo make install
with no issues.Oh! I see what is happening there. Since the build step already ran on your machine and nothing has changed in the underlying files make does not want to build again. At least that is what I think is happening.
Try this:
I hope that is what is happening anyway. The second time it failed on the build step and build is its own target that install calls... so it should not be doing anything different at that point. Fingers crossed running clean solves the issue.
Sorry about the trouble!
Nevermind. This had been bugging me. I now see that the output takes issue with
strings.ReplaceAll( ... )
. Upon investigation, this is only available for v1.12+ of Go.Given that, I am moving to
strings.Replace( ... )
and passing-1
as the counter for it. This should retain compatibility with1.11
, which I would very much like.Really, I'd like to know how old a go version this could build on.... :-/
I'll let you know when the update gets merged in and hopefully that solves the issue.
Hello @sloum,
Thank you very much for your efforts!
If I could because I would support you. Unfortunately, I'm not learn the language "go". ;(
I have just updated and now it works:
Awesome news! I'm glad it is working for you now :) It seemed to be version related. I'm trying to make this compatible with as early a version as is possible. Since it uses modules that ends up being Go 1.11. So between the updates toward that, and running clean, it seems to have done the job.
Definitely be in touch and let us know if you have any other issues. We are moving toward 2.0.0 being officially released. Hopefully soon. I really appreciate your help!