Skip to content

fix(*): lazily initialize structures to avoid c-boundary errors on require#87

Merged
bungle merged 2 commits into
mainfrom
fix/c-boundary
Sep 19, 2023
Merged

fix(*): lazily initialize structures to avoid c-boundary errors on require#87
bungle merged 2 commits into
mainfrom
fix/c-boundary

Conversation

@bungle
Copy link
Copy Markdown
Member

@bungle bungle commented Sep 19, 2023

Summary

Moves the code that was previously running on module level to initialize function that are lazily called when needed. This is to avoid the yield accross C-boundary errors during require.

@bungle bungle requested a review from hanshuebner September 19, 2023 14:30
…quire

### Summary

Moves the code that was previously running on `module` level to `initialize` function
that are lazily called when needed. This is to avoid the `yield accross C-boundary`
errors during `require`.
hanshuebner
hanshuebner previously approved these changes Sep 19, 2023
@github-actions
Copy link
Copy Markdown

Luacheck Report

14 tests     1 ✔️  0s ⏱️
  1 suites    0 💤
  1 files    13

For more details on these failures, see this check.

Results for commit 24de8e1.

@bungle bungle merged commit dd4e38c into main Sep 19, 2023
@bungle bungle deleted the fix/c-boundary branch September 19, 2023 14:41
bungle added a commit to Kong/kong that referenced this pull request Sep 19, 2023
### Summary

#### 1.3.5 (19-Sep-2023)

- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

#### 1.3.4 (13-Sep-2023)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

#### 1.3.3 (13-Sep-2023)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
bungle added a commit to Kong/kong that referenced this pull request Sep 19, 2023
### Summary

#### 1.3.5 (19-Sep-2023)

- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

#### 1.3.4 (13-Sep-2023)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

#### 1.3.3 (13-Sep-2023)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
windmgc pushed a commit to Kong/kong that referenced this pull request Jan 24, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
windmgc pushed a commit to Kong/kong that referenced this pull request Mar 7, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
windmgc pushed a commit to Kong/kong that referenced this pull request Mar 8, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
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.

2 participants