Skip to content
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

Added API for Action Deprecation #2357

Merged

Conversation

nickclark2016
Copy link
Member

What does this PR do?

This adds an API for action deprecation. This is in preparation for the official deprecation of gmake.

How does this PR change Premake's behavior?

No breaking changes with this PR. This will be as a stepping stone to introduce breaking changes to actions later.

Anything else we should know?

N/A

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass No existing action tests exist
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@nickclark2016 nickclark2016 requested a review from a team December 4, 2024 17:01
@nickclark2016 nickclark2016 force-pushed the feature/action-deprecation branch from 84951ae to 8bb74e0 Compare December 4, 2024 17:04
Comment on lines 83 to 94
for key, value in pairs(act.deprecatedaliases) do
action._deprecatedaliases[key] = value
end
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs to do one of two things; either automatically register deprecated aliases so they can be specified without the aliases table, or, emit a warning/error when the deprecated alias isn't in the aliases table.

My vote is for the auto registration because it's easier to work with.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good to me

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I'm going to go with both a notify and patching it into the table.

@nickclark2016 nickclark2016 force-pushed the feature/action-deprecation branch from 8bb74e0 to 076a4f0 Compare December 5, 2024 22:37
@samsinsane samsinsane merged commit d99f117 into premake:master Dec 6, 2024
23 checks passed
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.

3 participants