🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/693
**Author:** [@odenix](https://github.com/odenix)
**Created:** 10/16/2024
**Status:** ✅ Merged
**Merged:** 10/16/2024
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `max-list-elements`
---
### 📝 Commits (1)
- [`5439f22`](https://github.com/apple/pkl/commit/5439f22cd034a5170169c1efa09aea3ae52cb851) Set lower limit for glob pattern resolution in test mode
### 📊 Changes
**2 files changed** (+11 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-core/src/main/java/org/pkl/core/util/GlobResolver.java` (+10 -3)
📝 `pkl-core/src/main/java/org/pkl/core/util/IoUtils.java` (+1 -1)
</details>
### 📄 Description
Motivation:
Speed up the test that verifies enforcement of the limit for glob pattern resolution (invalidGlobImport6.pkl).
Changes:
- Set a lower limit if test mode is enabled.
- Change static field to static method to prevent compile-time evaluation by native-image.
Result:
Test takes 0.5 instead of 15 seconds to run (on my machine).
Fixes #691.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/693
Author: @odenix
Created: 10/16/2024
Status: ✅ Merged
Merged: 10/16/2024
Merged by: @bioball
Base:
main← Head:max-list-elements📝 Commits (1)
5439f22Set lower limit for glob pattern resolution in test mode📊 Changes
2 files changed (+11 additions, -4 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/util/GlobResolver.java(+10 -3)📝
pkl-core/src/main/java/org/pkl/core/util/IoUtils.java(+1 -1)📄 Description
Motivation:
Speed up the test that verifies enforcement of the limit for glob pattern resolution (invalidGlobImport6.pkl).
Changes:
Result:
Test takes 0.5 instead of 15 seconds to run (on my machine).
Fixes #691.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.