Skip to content

fix: add support for ignoring "load" global variable#11862

Merged
Revolyssup merged 3 commits into
apache:masterfrom
Revolyssup:revolyssup/fix-lint
Dec 30, 2024
Merged

fix: add support for ignoring "load" global variable#11862
Revolyssup merged 3 commits into
apache:masterfrom
Revolyssup:revolyssup/fix-lint

Conversation

@Revolyssup

@Revolyssup Revolyssup commented Dec 25, 2024

Copy link
Copy Markdown
Contributor

Description

Fixes # (issue)
lua global load is not covered by default by the lj-relang which is used for lint tests. This PR makes sure overrides the code with the one which takes that into account
needed for this: #11793

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Dec 25, 2024
Comment thread utils/lj-releng
|os|print|tonumber|math|pcall|xpcall|unpack
|pairs|ipairs|assert|module|package
|coroutine|[gs]etfenv|next|rawget|rawset
|loadstring|dofile|collectgarbage|load

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

load is added here

Comment thread utils/lj-releng
@Revolyssup
Revolyssup requested a review from nic-6443 December 30, 2024 12:48
@Revolyssup
Revolyssup merged commit b89c1a0 into apache:master Dec 30, 2024
@Revolyssup
Revolyssup deleted the revolyssup/fix-lint branch December 30, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants