-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GeneratedThirdPartyNotices.txt and make sure it stays in sync #673
Conversation
One idea that came up in discord was to get rid of this file and just generate it during the build. If we want to do that, we can make this change: diff --git i/.github/workflows/build.yml w/.github/workflows/build.yml
index cf543ca25..c61384d9e 100644
--- i/.github/workflows/build.yml
+++ w/.github/workflows/build.yml
@@ -413,6 +413,14 @@ jobs:
sed -e "s/m_VersionNumber:.*$/m_VersionNumber: $VERSION/" -i Assets/Scenes/Main.unity
sed -e "s/bundleVersion:.*$/bundleVersion: $VERSION/" -i ProjectSettings/ProjectSettings.asset
+ - uses: actions/[email protected]
+ with:
+ python-version: '3.12'
+
+ - name: Update the ThirdParty NOTICE file
+ run: |
+ python Support/Python/unitybuild/generate_notice.py
+
- name: Add secure secrets file
env:
SECRETS_ASSET: ${{ secrets.SECRETS_ASSET }} But we should probably keep a stub for local build purposes. More importantly, it seems like we use the reference in Github as well (look at |
I see that in #644, all platforms use this link. Perhaps we can generate at build time and push to the docs site, and link to there? |
The docs site would be ideal but I'm not averse to a github link if that's easier. Changing the url in #644 is easy so it's your call @mikeage Not sure of the legalities. If the file isn't in github clones or downloads, but is in our builds - is that enough to satisfy the terms of the Apache license? Or should it be in both. If so we should maybe run this as a precommit and push responsibility for updating the repo onto the person doing the commit. In which case keep the in-app link as a github link as it already works. I think this was your first suggestion on Discord, wasn't it? |
I don't know about legality. The current method works, and this makes it better in terms of any future changes (honestly unlikely because almost everything is a package and not a ThirdParty directory). But building automatically and updating the docs site (which is less problematic than updating the main repo in an automated fashion) might be even better |
I'm slightly unclear where we are specifically with the code in this PR after subsequent discussions. Are you still suggesting it's best to merge this? |
I don't know :-) I definitely think we should merge this for the script. As far as the test vs automation... I can see either way. You first raised the Q... so what do you think? |
No description provided.