-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: support fossil in 'go get' #10010
Comments
go get is for downloading code over the network. |
There is e.g. Chisel, but the point with Fossil is that it's kind of github-in-a-box so one can use any cheap shared hosting and host Fossil repos as long as one can access URL via HTTP(S)/SSH. |
Too late for Go 1.5. If you'd like to send fossil support for Go 1.6 (so that tags mentioning fossil work, without any hard-coded special cases for hosting), that is perfectly fine with me. |
I'm just in process of fully migrating to Git - Fossil is nice, but most of the development is simply happening within Git world so one has to be pragmatic to survive. ;) |
There are quite a few devs using fossil. That fossil is not supported is a shame. It has a number of strong an unique features... So here is my +1. Just as a point of interest... since fossil is a single encapsulated executable that uses SQLite as it's storage engine It's ideally deployed in a docker container. |
Let me say that now I'm still interested for Fossil support in Go... |
I'd you would like to take a crack at it, the code for this lives in the Each vcs supported is represented as an instance of a common data structure Good luck. Dave On Sun, 11 Oct 2015 18:47 Gour [email protected] wrote:
|
Update: it's in https://godoc.org/golang.org/x/tools/go/vcs,
and there is an slightly edited copy of vcs.go in cmd/go/vcs.go.
If you want to add fossil support to the go command, please
be sure to propose changes to both packages (and send the
CLs soon, before the Nov 1st code freeze date.)
|
I was looking at docs and wonder if Go's vcs framework is flexible-enough to support Fossil, iow. Git, Mercurial and Subversion do function similarly in a sense that one clones/checkouts repo in a certain dir and that's it. Otoh, with Fossil the situation a bit different and it requires 2 steps:
iow., the repo itself is fully contained in a single repo.fossil file which is actually Sqlite3 database, while checkout and/or working directoriy are in a another dir which is 'connected' with the repo file itself. Any thought? |
How about combine the clone and open operations into
CreateCmd?
|
I've started working on this, but there are two issues that are holding me up:
|
I've settled on using/learning Go and Fossil is my preferred DVCS, so wonder what is the status of this feature? |
@gour I've got rudimentary support working, but I still need to handle some inconsistencies with tags and branches. I haven't worked on it for a while, but I'll try to finish it up and submit a CL. |
Thanks a lot for your work on it!! Both Go and Fossil are great piece of software, so it would be terrific to make them play together. ;) |
Change https://golang.org/cl/56190 mentions this issue: |
Change https://golang.org/cl/56491 mentions this issue: |
Fix a missed change from: https://golang.org/cl/56190 pointed out on the fossil mailing list shortly after submission of the change mentioned above. See: http://www.mail-archive.com/[email protected]/msg25736.html This change adds fossil to the general regular expression that is checked last in the import path check. For #10010 Change-Id: I6b711cdb1a8d4d767f61e1e28dc29dce529e0fad Reviewed-on: https://go-review.googlesource.com/56491 Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Daniel Martí <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
Change https://golang.org/cl/62910 mentions this issue: |
The regular expression "A-za-z" is most likely a typo and the intent seems to be "A-Za-z" instead. Using "A-z" matches certain characters like: [\]^_` Updates #10010 Change-Id: If2d064c56ef613f2e46285d8d4e5998e83aed43a Reviewed-on: https://go-review.googlesource.com/62910 Reviewed-by: Matt Layher <[email protected]> Run-TryBot: Matt Layher <[email protected]>
Fossil (http://fossil-scm.org) is very nice version control system which, imho, is designed very much in the spirit of Go langauge itself being very powerful, but still much more simple to use in comparison with e.g. Git. Moreover, it does things a little bit different - e.g. keeping the whole repo in single (sqlite3 database) file and not in flat database like e.g. '.git' and is very simple to handle repositories and it includes wiki, tickets system etc...we can sayn 'github in a box'. :-)
However, some things are done differently and Fossil therefore requires two steps to clone and checkout the repo:
However, I consider that it would be very nice feature for Golang's ecosystem to have official support for working with Fossil DVCS which is very attractive to users preferring to have simple & powerful tool deliberately leaving out some features in order to keep things simple.
Sincerely,
Gour
The text was updated successfully, but these errors were encountered: