Skip to content

Relicense code to Apache License, Version 2.0#1688

Merged
marshallward merged 2 commits into
mom-ocean:mainfrom
NOAA-GFDL:apache-2
Mar 2, 2026
Merged

Relicense code to Apache License, Version 2.0#1688
marshallward merged 2 commits into
mom-ocean:mainfrom
NOAA-GFDL:apache-2

Conversation

@marshallward
Copy link
Copy Markdown
Collaborator

This PR re-licenses the MOM6 source code from the Lesser GNU Public License, version 3 to Apache License, Version 2.0. This is done with the consent of all contributors to the source code.

All source files are now tagged with the following disclaimer.

This file is part of MOM6, the Modular Ocean Model version 6.
See the LICENSE file for licensing information.
SPDX-License-Identifier: Apache-2.0

All relevant source code, scripts, and macros are now explicitly identified as part of MOM6. Configuration files containing scripts, such as GitHub Actions, have also been tagged. Any other configurations, such as model inputs, have been excluded.

A separate commit updates the CVMix submodule from its older LGPL licensed version to its newer Apache licensed version. This is required to consistently integrate CVMix source into MOM6. There are no code changes between the current and new CVMix source. This change has been included with the consent of the CVMix maintainer (@mnlevy1981).

This patch updates the CVMix submodule to a more recent version that is
licensed under the Apache 2.0 license.  There are no code changes to
CVMix relative to the current version.
This PR re-licenses the MOM6 source code from the Lesser GNU Public
License, version 3 to Apache License, Version 2.0.  This is done with
the consent of all contributors to the source code.

All source files are now tagged with the following disclaimer.
```
This file is part of MOM6, the Modular Ocean Model version 6.
See the LICENSE file for licensing information.
SPDX-License-Identifier: Apache-2.0
```
All relevent source code, scripts, and macros are now explicitly
identified as part of MOM6.  Configuration files containing scripts,
such as GitHub Actions, have also been tagged.  Any other
configurations, such as model inputs, have been excluded.
@marshallward
Copy link
Copy Markdown
Collaborator Author

The intention is to handle this after #1677 has been merged, but I'm submitting it now to get an early start on the review process.

Copy link
Copy Markdown
Collaborator

@abozec abozec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COAPS approves.

Copy link
Copy Markdown
Collaborator

@jiandewang jiandewang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't image Marshall has to make changes in more than 300 codes.

@mnlevy1981
Copy link
Copy Markdown
Contributor

This change has been included with the consent of the CVMix maintainer (@mnlevy1981).

I was very excited to realize mom-ocean/CVMix-src already contained a commit that had identical source code to the previous MOM6 submodule but with the updated license! As you can see from the changed files tab, we're only changing two LICENSE files (transitioning from md -> txt) and a README.

@mathomp4
Copy link
Copy Markdown
Collaborator

can't image Marshall has to make changes in more than 300 codes.

If there was ever a job for GPT/Claude/Gemini/Copilot, it's this. "Add this text to every file using the right comment style" 😄

@marshallward
Copy link
Copy Markdown
Collaborator Author

can't image Marshall has to make changes in more than 300 codes.

The advice that I saw was to tag every file, because you never know when someone might accidentally grab a file and then add it to their own repo. Little scripts and GitHub Actions code are most vulnerable!

If there was ever a job for GPT/Claude/Gemini/Copilot, it's this. "Add this text to every file using the right comment style" 😄

The script I wrote to do this was a work of art.

@marshallward marshallward merged commit 08529ba into mom-ocean:main Mar 2, 2026
52 checks passed
@marshallward marshallward deleted the apache-2 branch March 2, 2026 18:27
@marshallward
Copy link
Copy Markdown
Collaborator Author

We're now an Apache shop. Thanks to everyone, especially @Hallberg-NOAA for getting everyone's approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants