Re: [go-nuts] rsc.io/script: How to contribute?

2024-03-07 Thread Russ Cox
Hi all,

I published rsc.io/script for people to play with, to support my testing
talk . For now it is on a back burner -
I get so much GitHub mail that I cannot keep up with all the
notifications, so I hadn't seen the activity there. Perhaps at some point
we will decide to publish this code in an officially supported location and
change cmd/go to use that copy instead of cmd/go/internal/script, but that
would require finalizing the API to the point where we are comfortable
supporting it forever, and there are other projects that are more pressing
(for example, range over functions and iterator libraries). I am reluctant
to change rsc.io/script to add new features and so on, because that just
creates a divergence that will have to be resolved when we do want cmd/go
to use this hypothetical official version.

I'm glad people find it useful and I apologize that there is not time to do
something more with it myself. That happens in open source.

Best,
Russ

-- 
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/CAA8EjDQD3_rMfNx0H0U5A8x-MytnW09mZ0hFa6THTxHS4oigGQ%40mail.gmail.com.


Re: [go-nuts] Re: rsc.io/script: How to contribute?

2024-03-07 Thread twp...@gmail.com
github.com/rogpeppe/go-internal/testscript is absolutely wonderful. I've 
been using it successfully for several years and am the #4 contributor to 
the project. My only complaint would be that it sometimes takes a few 
months for changes to be merged and the release cycle is infrequent, 
meaning that I have to maintain my own workarounds for missing 
functionality longer than I would like. There also some long-term 
unresolved issues like the ability to "not care" about the exit code of a 
command , which has been 
open for nearly four years.

testscript is a fork from an earlier version of Go's 
src/cmd/go/internal/script, and since then script has been re-written to be 
more modular. rsc.io/script is a semi-official release of 
src/cmd/go/internal/script as it's from one of the original Go developers. 
This puts the future of testscript into doubt: will people switch to 
rsc.io/script or not? I've also raised this with the testscript developers 
.

I can continue to use testscript, but if the feeling is that the world is 
moving to the more modern rsc.io/script, then I'm keen to contribute to 
rsc.io/script to make it useable by other projects. But first, I need to 
know how to contribute to rsc.io/script...

On Thursday, March 7, 2024 at 3:18:51 PM UTC+1 Eli Bendersky wrote:

> On Thu, Mar 7, 2024 at 5:44 AM twp...@gmail.com  wrote:
>
>> Thanks, but I'm already heavily invested in testscript with over 10K 
>> lines of scripts and a lot of custom configuration, and 
>> commander-cli/commander clearly lacks functionality I need.
>>
>
> OOC, is there anything wrong with 
> github.com/rogpeppe/go-internal/testscript 
> ?
>
> I've recently used it successfully on two diverse projects; it works well, 
> it still appears to be maintained, and has good documentation for 
> out-of-stdlib use cases.
>
>
>
>
>  
>
>>
>> On Thursday, March 7, 2024 at 2:47:03 AM UTC+1 Ajay Kidave wrote:
>>
>>> I have had a good experience using 
>>> https://github.com/commander-cli/commander for testing CLI commands. It 
>>> uses a yaml file for test config. I generally avoid yaml but the commander 
>>> config format is easy to work with. Never used script, the state saving 
>>> between commands feature might be missing in commander-cli.
>>>
>>> On Wednesday, March 6, 2024 at 1:52:57 PM UTC-8 twp...@gmail.com wrote:
>>>
 *rsc.io/script

 On Wednesday, March 6, 2024 at 10:46:23 PM UTC+1 twp...@gmail.com 
 wrote:

> Internally, Go has a very nice package for integration testing 
> .
>
> Roger Peppe  has been doing a fantastic 
> service by making it public and maintaining it as a community project at 
> github.com/rogpeppe/go-internal/testscript 
> , and 
> Roger's package has been extremely valuable for my project 
>  and many others.
>
> Over a quarter of a year ago, Russ Cox  
> made a semi-official release of the code 
>  which includes several 
> improvements (e.g. better modularity), but also removing critical 
> functionality  required to 
> make rsc.io/script usable by other projects.
>
> Appeals to the author about how to contribute 
>  have been met with silence. 
> Fundamental issues like installation failures 
>  have had no response.
>
> Does rsc.io/switch have a future? If so, how can we contribute? This 
> is a fantastically useful piece of software for the Go community and we 
> will all be better off if it succeeds.
>
> Regards,
> Tom
>
> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/f6f92dd8-9033-43a0-9348-02c039c7fe90n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/964e1f1e-ac19-4930-bdbf-9494b2519c8en%40googlegroups.com.


Re: [go-nuts] Re: rsc.io/script: How to contribute?

2024-03-07 Thread Eli Bendersky
On Thu, Mar 7, 2024 at 5:44 AM twp...@gmail.com  wrote:

> Thanks, but I'm already heavily invested in testscript with over 10K lines
> of scripts and a lot of custom configuration, and commander-cli/commander
> clearly lacks functionality I need.
>

OOC, is there anything wrong with github.com/rogpeppe/go-internal/testscript
?

I've recently used it successfully on two diverse projects; it works well,
it still appears to be maintained, and has good documentation for
out-of-stdlib use cases.






>
> On Thursday, March 7, 2024 at 2:47:03 AM UTC+1 Ajay Kidave wrote:
>
>> I have had a good experience using
>> https://github.com/commander-cli/commander for testing CLI commands. It
>> uses a yaml file for test config. I generally avoid yaml but the commander
>> config format is easy to work with. Never used script, the state saving
>> between commands feature might be missing in commander-cli.
>>
>> On Wednesday, March 6, 2024 at 1:52:57 PM UTC-8 twp...@gmail.com wrote:
>>
>>> *rsc.io/script
>>>
>>> On Wednesday, March 6, 2024 at 10:46:23 PM UTC+1 twp...@gmail.com wrote:
>>>
 Internally, Go has a very nice package for integration testing
 .

 Roger Peppe  has been doing a fantastic
 service by making it public and maintaining it as a community project at
 github.com/rogpeppe/go-internal/testscript
 , and
 Roger's package has been extremely valuable for my project
  and many others.

 Over a quarter of a year ago, Russ Cox 
 made a semi-official release of the code
  which includes several improvements
 (e.g. better modularity), but also removing critical functionality
  required to make rsc.io/script
 usable by other projects.

 Appeals to the author about how to contribute
  have been met with silence.
 Fundamental issues like installation failures
  have had no response.

 Does rsc.io/switch have a future? If so, how can we contribute? This
 is a fantastically useful piece of software for the Go community and we
 will all be better off if it succeeds.

 Regards,
 Tom

 --
> 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/f6f92dd8-9033-43a0-9348-02c039c7fe90n%40googlegroups.com
> 
> .
>

-- 
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/CAF-Rda9YW%2BT3DsqFAcifCMG1%3DTMPr-XyBPpQGehNmaPRCwmMDw%40mail.gmail.com.


[go-nuts] Re: rsc.io/script: How to contribute?

2024-03-07 Thread twp...@gmail.com
Thanks, but I'm already heavily invested in testscript with over 10K lines 
of scripts and a lot of custom configuration, and commander-cli/commander 
clearly lacks functionality I need.

On Thursday, March 7, 2024 at 2:47:03 AM UTC+1 Ajay Kidave wrote:

> I have had a good experience using 
> https://github.com/commander-cli/commander for testing CLI commands. It 
> uses a yaml file for test config. I generally avoid yaml but the commander 
> config format is easy to work with. Never used script, the state saving 
> between commands feature might be missing in commander-cli.
>
> On Wednesday, March 6, 2024 at 1:52:57 PM UTC-8 twp...@gmail.com wrote:
>
>> *rsc.io/script
>>
>> On Wednesday, March 6, 2024 at 10:46:23 PM UTC+1 twp...@gmail.com wrote:
>>
>>> Internally, Go has a very nice package for integration testing 
>>> .
>>>
>>> Roger Peppe  has been doing a fantastic 
>>> service by making it public and maintaining it as a community project at 
>>> github.com/rogpeppe/go-internal/testscript 
>>> , and 
>>> Roger's package has been extremely valuable for my project 
>>>  and many others.
>>>
>>> Over a quarter of a year ago, Russ Cox  
>>> made a semi-official release of the code 
>>>  which includes several improvements 
>>> (e.g. better modularity), but also removing critical functionality 
>>>  required to make rsc.io/script 
>>> usable by other projects.
>>>
>>> Appeals to the author about how to contribute 
>>>  have been met with silence. 
>>> Fundamental issues like installation failures 
>>>  have had no response.
>>>
>>> Does rsc.io/switch have a future? If so, how can we contribute? This is 
>>> a fantastically useful piece of software for the Go community and we will 
>>> all be better off if it succeeds.
>>>
>>> Regards,
>>> Tom
>>>
>>>

-- 
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/f6f92dd8-9033-43a0-9348-02c039c7fe90n%40googlegroups.com.


Re: [go-nuts] GO111MODULE=off go get deprecated?

2024-03-07 Thread Jan Mercl
On Sun, Mar 3, 2024 at 10:25 PM Jeffery Carr  wrote:

> Has this been deprecated or maybe it is broken in debian sid, but:
>
> bash$ GO111MODULE=off go get -v go.wit.com/apps/test
> go: modules disabled by GO111MODULE=off; see 'go help modules'
> basj$ go version
> go version go1.22.0 linux/amd64
>
> this doesn't work anymore. Also, 'go help modules' is less than helpful.
>
> Is there some other way to download the actual sourcecode into
~/go/src/mything/ anymore?

One can get a somehow similar effect using 'auto' instead of 'off':

jnml@e5-1650:~/tmp/get$ ls -la
total 8
drwxr-xr-x 2 jnml jnml 4096 Mar  7 11:18 .
drwxr-xr-x 6 jnml jnml 4096 Mar  7 11:18 ..
jnml@e5-1650:~/tmp/get$ GOPATH=$(pwd) GO111MODULE=off go get -v
modernc.org/sqlite
go: modules disabled by GO111MODULE=off; see 'go help modules'
jnml@e5-1650:~/tmp/get$ GOPATH=$(pwd) GO111MODULE=auto go get -v
modernc.org/sqlite
go: downloading modernc.org/sqlite v1.29.2
go: downloading modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6
go: downloading golang.org/x/sys v0.16.0
go: downloading modernc.org/libc v1.41.0
go: downloading modernc.org/token v1.1.0
go: downloading modernc.org/mathutil v1.6.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading modernc.org/strutil v1.2.0
go: downloading github.com/remyoudompheng/bigfft
v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/ncruces/go-strftime v0.1.9
go: downloading github.com/mattn/go-isatty v0.0.16
go: downloading modernc.org/memory v1.7.2
jnml@e5-1650:~/tmp/get$ ls pkg/mod/
cache  github.com  golang.org  modernc.org
jnml@e5-1650:~/tmp/get$  go version
go version go1.22.0 linux/amd64
jnml@e5-1650:~/tmp/get$

HTH

-- 
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/CAA40n-UxFxrbrgZ%3Dn-hXYrrODjwDVX9uq995BWWLkjSf3G0XsQ%40mail.gmail.com.