Re: [go-nuts] Publishing and using go module from tarball?

2020-01-06 Thread 'Bryan C. Mills' via golang-nuts
See also the golang.org/x/mod/zip 
 package.

On Monday, January 6, 2020 at 10:02:25 AM UTC-5, Amnon Baron Cohen wrote:
>
> > Go modules tooling does not seem to support http at
> > all and as for the https I did not find any way to allow use of 
> self-signed
> > certificate...
>
> In Go 1.14 (available as in beta) you can set the GOINSECURE env var to 
> allow http download.
> https://tip.golang.org/cmd/go/#hdr-Environment_variables
>
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/af46c004-c8e1-4491-ba5f-27e1ad1f217d%40googlegroups.com.


Re: [go-nuts] Publishing and using go module from tarball?

2020-01-06 Thread Amnon Baron Cohen
> Go modules tooling does not seem to support http at
> all and as for the https I did not find any way to allow use of 
self-signed
> certificate...

In Go 1.14 (available as in beta) you can set the GOINSECURE env var to 
allow http download.
https://tip.golang.org/cmd/go/#hdr-Environment_variables


>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/457d73e2-a353-47fe-850f-2d8a88b819b6%40googlegroups.com.


Re: [go-nuts] Publishing and using go module from tarball?

2020-01-06 Thread Amnon Baron Cohen
In Go 1.14 (available as in beta) you can set the GOINSECURE env var to 
allow http download.
https://tip.golang.org/cmd/go/#hdr-Environment_variables

On Sunday, 5 January 2020 17:34:50 UTC, volf...@gmail.com wrote:
>
>
>
> On Sunday, January 5, 2020 at 11:02:52 AM UTC, Amnon Baron Cohen wrote:
> > If you are happy publishing a zip archive rather than a tarball,
> > then you can server the module download protocol directly.
> > See https://research.swtch.com/vgo-module#download_protocol
>
> That definitely looks interesting and I will try to find some time to look 
> into it
> deeper, however testing it locally seems much more difficult then it really
> should have been. Go modules tooling does not seem to support http at
> all and as for the https I did not find any way to allow use of self-signed
> certificate...
>
> But still, it looks like it might be possible so thanks again, I will try 
> to
> twist it to work for my use-case.
>
> Thanks :)
>
> W.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/aedbf622-b1e1-4c7e-8c94-07305734422a%40googlegroups.com.


Re: [go-nuts] Publishing and using go module from tarball?

2020-01-05 Thread volf . tomas


On Sunday, January 5, 2020 at 11:02:52 AM UTC, Amnon Baron Cohen wrote:
> If you are happy publishing a zip archive rather than a tarball,
> then you can server the module download protocol directly.
> See https://research.swtch.com/vgo-module#download_protocol

That definitely looks interesting and I will try to find some time to look 
into it
deeper, however testing it locally seems much more difficult then it really
should have been. Go modules tooling does not seem to support http at
all and as for the https I did not find any way to allow use of self-signed
certificate...

But still, it looks like it might be possible so thanks again, I will try to
twist it to work for my use-case.

Thanks :)

W.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0649c750-8d27-4582-9454-7da97394f8fd%40googlegroups.com.


Re: [go-nuts] Publishing and using go module from tarball?

2020-01-05 Thread Amnon Baron Cohen
If you are happy publishing a zip archive rather than a tarball,
then you can server the module download protocol directly.
See https://research.swtch.com/vgo-module#download_protocol

On Sunday, 5 January 2020 05:11:32 UTC, wgr wrote:
>
> On 2020-01-04 15:54, volf...@gmail.com  wrote: 
> > Greetings, 
> > 
> > I would like to ask if it is possible to publish go module using tarball 
> and 
> > later on somehow use it. All examples I was able are about using go 
> modules 
> > from some git repository. However, what I would like to do is publish 
> > tarball 
>
> Would `go mod vendor` then building with `go build -mod=vendor` or 
> `GOFLAGS=-mod=vendor go build` work for you? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a5a8352d-edbc-470d-8c22-eb624ba9a75c%40googlegroups.com.


Re: [go-nuts] Publishing and using go module from tarball?

2020-01-04 Thread wgr
On 2020-01-04 15:54, volf.to...@gmail.com wrote:
> Greetings,
> 
> I would like to ask if it is possible to publish go module using tarball and
> later on somehow use it. All examples I was able are about using go modules
> from some git repository. However, what I would like to do is publish
> tarball

Would `go mod vendor` then building with `go build -mod=vendor` or
`GOFLAGS=-mod=vendor go build` work for you?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/19208b7d-e411-6b09-9413-9a534cffbe5b%40gmail.com.


[go-nuts] Publishing and using go module from tarball?

2020-01-04 Thread volf . tomas
Greetings,

I would like to ask if it is possible to publish go module using tarball and
later on somehow use it. All examples I was able are about using go modules
from some git repository. However, what I would like to do is publish 
tarball
same way as I would do for C projects (`make dist`) and later on use that 
from
another go project.

I have no problem to write the `make dist` target, I'm using makefiles 
already,
publishing the source code is also easy part
(http://example.org/project-1.0.0.tar.xz), but I have no idea how can I 
import
something like that.

I was trying to find some resources on this but to no avail. So, is this
something that is possible or am I required to use git (or other VCS) for go
projects?

Thank you for any guidance on this topic.

W.

PS: I don't care about hiding the source code, so binary modules and plugins
are probably not what am I looking for.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/dfa0a37f-c5f8-44ff-9fbf-8f2a4cbf570d%40googlegroups.com.