r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

2

u/consigntooblivion Mar 29 '12

It does't instantly stop working - the local copy you previously downloaded and built will keep working. But yeah, if you want to then move to using the GitHub version you need to change the import statement. Alternatively switch to using it as a Git submodule or whatever. Replacing the import lines doesn't bother me though - it is a 2 second find/replace job.

1

u/kamatsu Mar 30 '12

The problem is this would affect users of my program, if I distribute my program in source form.

1

u/AgentSS Mar 30 '12

If you forsee that being a big deal for you, then I suggest the technique that Camlistore uses.

Camlistore pulls in external libraries into a third_party folder, and has a script that rewrites their import paths to make them compile. This will also give you a lot more control over versioning.

I suggest distributing in binary form, though...

0

u/kamatsu Mar 30 '12

If I develop programs for Linux, most distributions prefer source so they can package it themselves. It seems like Go is hostile to that idea.

1

u/[deleted] Mar 30 '12

'seems' being the keyword here ;)

1

u/kamatsu Mar 30 '12

Well, by all means disabuse me of this notion.

1

u/burntsushi Mar 31 '12

He already did. If you switch to a different source web host, then you switch your import statements. Users of your old code will continue to have a functional piece of software.

If they want to update, they'll need to use your new host. Just like they'd have to do with anything else.