r/programming • • Oct 01 '19

Stack Exchange and Stack Overflow have moved to CC BY-SA 4.0. They probably are not allowed too and there is much salt.

https://meta.stackexchange.com/questions/333089/stack-exchange-and-stack-overflow-have-moved-to-cc-by-sa-4-0
1.3k Upvotes

445 comments sorted by

View all comments

Show parent comments

66

u/3dB Oct 02 '19

I'm not sure if I'm correct here but I thought that sure, while you can re-license code any versions released or committed under a previous license would remain subject to the terms of that previous license. The change doesn't apply retroactively.

For example if you release a version 1 under MIT license but version 2 you release under GPL, people would be well within their rights to go back and use any code released under version 1 as still being MIT licensed.

32

u/ghostnet Oct 02 '19

In general that is correct!

The GPL and MIT license both allow for re-distribution which means that anyone can redistribute it, under at least the same license if not a different one. So if someone released version 1 under MIT then there will always be another person who is able to share that same code under the MIT license, no matter what. The original author can choose to change the licence whenever they want, as long as they are the copyright holder or have the permission to do so, meaning that all future copies of version 1 they distribute are under the GPL lets say. That does not change any existing licenses out there, so everyone who has a copy under MIT will still be able to distribute it under an MIT license. Thus is the intention of open source.

4

u/TinynDP Oct 02 '19

It only doesnt apply retroactvly to copies that were already downloaded. The host can change their license for what they provide to people from that day forward.