[go-nuts] Re: Go modules v2.0.0 won't work (but v2.0.1 will)

2019-06-14 Thread Francesc Campoy Flores
Turns out my code was correct and the only problem was that somehow the 
cache was corrupted.

I ran go clean -modcache and everything is now working.


On Friday, June 14, 2019 at 4:24:34 PM UTC-7, Francesc Campoy Flores wrote:
>
> Hi everyone,
>
>
> I have a pretty weird error with Go modules that I can't explain - after 
> some investigation I feel this might be a bug but I'd like to have some 
> extra eyes on it.
>
>
> I have migrated my tools repository (github.com/campoy/tools) to use Go 
> modules and as a test I've tagged two major version v1.0.0 and v2.0.0.
>
>
> I then wrote a little program the flags package in the tools modules that 
> looks like this:
>
>
> package main
> import (
> "flag"
> "fmt"
> "image/color"
>
> "github.com/campoy/tools/flags"
> )
> func main() {
> h := flags.HexColor("color", color.Black, "color")
> flag.Parse()
>
> fmt.Println(h.RGBA())
> }
>
>
> which produced the following go.mod:
>
>
> module github.com/campoy/tests/mods
> go 1.12
>
> require github.com/campoy/tools v1.0.0
>
>
> Now, when I try to use v2.0.0 I modify the import path of the program to 
> use github.com/campoy/tools/v2/flags and the require line to be require 
> github.com/campoy/tools/v2 v2.0.0
>
>
> When I try to build this the compilation fails with the error message:
>
>
> go: github.com/campoy/tools/v2@v2.0.0: go.mod has non-.../v2 module path 
> "github.com/campoy/tools" (and .../v2/go.mod does not exist) at revision 
> v2.0.0
> go: error loading module requirements
>
>
> But if I instead use the tag v2.0.1 which points to the *same* commit as 
> v2.0.0 everything works correctly.
>
>
> Am I doing something wrong or does this seem like a real bug?
>

-- 
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/64c55ba1-7a8d-4273-82ef-58520c6288d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Go Devroom at FOSDEM 2019

2018-11-25 Thread Francesc Campoy Flores
Hi gophers!

As every year we're planning a Go Devroom at FOSDEM 2019, taking place in
Brussels next February.

If you'd like to join us as a speaker please follow the instructions here:
https://link.medium.com/6d9C6gNk8R

Huge thanks to Maartje Eyskens for co-organizing this year's Devroom again!

Cheers,
Francesc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] FOSDEM 2018 Go Devroom Schedule

2018-01-04 Thread Francesc Campoy Flores
Hi gophers,

Good news, after our amazing reviewers evaluated *many* talk proposals 
we've come out with the following schedule 
 for the Go Devroom.


https://fosdem.org/2018/schedule/track/go/

To all those  whose talks were accepted, congratulations! For those whose 
talks were not, thanks again for your help and understanding!
You all rock, and with your collaboration this is going to be the best Go 
Devroom FOSDEM has ever seen!

All the talks will be recorded and released on YouTube shortly after the 
conference on February 3rd.
I hope to see many of you around!

Cheers,

Francesc 
VP of Developer Relations at source{d} 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] CfP Go Devroom FOSDEM 2018

2017-10-09 Thread Francesc Campoy Flores


Hi gophers,

The Go community has been represented at FOSDEM  every 
year since 2014, and 2018 will not be an exception!

This time the Go devroom got a full (large!) room on Saturday February 3rd 
and we are now looking for speakers. The format will be 30 minutes talk 
with some time for Q at the end.


This is a great opportunity for new speakers, and we will have people 
helping you craft your talk and slides if so you wish. So if you, or 
someone you know, are working on something cool that might be good on stage 
… submit a proposal!

Do you want to be one of them? Please submit your proposal using pentabarf 
here . The deadline for 
submission is November 30th. If you have an account from previous years you 
can reuse it. 

Do you want to help organize the devroom? We need people to help with the 
cameras, set up, and proposal review. Please send me an email to 
go-devroom-mana...@fosdem.org if you'd like to help out with this.

Any topics related to Go are welcome, with a preference for open source 
projects rather than product pitches.

The room will follow Go's Code of Conduct .

Cheers,

Francesc Campoy

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] justforfunc: a Go YouTube series

2017-07-10 Thread Francesc Campoy Flores
Hi gophers,

Sorry to spam you, but I'll do it only once! Today I published the episode 
15 of a YouTube series 

 
I've been working on for a while.

I think it is becoming a quite good resource for gophers looking for best 
practices, code reviews, and some fun projects.
All of the code is of course open source at github.com/campoy/justforfunc.

You're invited to check it out, and send any feedback to 
form.justforfunc.com or directly to my email :)



Francesc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: go test -S: repeated symbols in assembly

2017-07-10 Thread Francesc Campoy Flores
I can confirm that the behavior only happens on Mac, tried the same on 
Linux and the output contained each symbol only once.

https://github.com/golang/go/issues/20976


On Monday, July 10, 2017 at 3:21:23 PM UTC-7, Francesc Campoy Flores wrote:
>
> Even using tip I get the same behavior, I attached the output of running 
> the following command with tip
>
> go test -bench=Div -gcflags "-S" 2>& out.s
>
> goos: darwin
>
> goarch: amd64
>
> pkg: 
> github.com/campoy/go-tooling-workshop/3-dynamic-analysis/3-profiling/jic
>
> BenchmarkDiv-8   5 3.79 ns/op
>
> PASS
>
> ok  
> github.com/campoy/go-tooling-workshop/3-dynamic-analysis/3-profiling/jic 
> 2.301s
>
> On Monday, July 10, 2017 at 3:04:51 PM UTC-7, Francesc Campoy Flores wrote:
>>
>> Hi,
>>
>> I'm writing on compiler optimization and benchmarks, and one of the 
>> things I do is `go test -bench=. -gcflags "-S"`
>>
>> This outputs the generated assembly, which allows me to point out when a 
>> function call has ben inlined, or simply removed.
>>
>> The problem is that for this piece of code 
>> https://play.golang.org/p/dGdRN_wd1i, I get two definitions for 
>> BenchmarkDiv (see attached file), one that has a DIVSD instruction, the 
>> other that doesnt.
>>
>> What does this mean?
>>
>> Francesc
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.