This fixes an issue that can possibly cause a StringIndexOutOfBoundsException when generating pkldoc.
The relative path should be based off the module name prefix, not the package name.
🔄 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/1028
**Author:** [@bioball](https://github.com/bioball)
**Created:** 3/26/2025
**Status:** ✅ Merged
**Merged:** 4/15/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `fix-pkldoc-package-data-generator`
---
### 📝 Commits (1)
- [`441c0ec`](https://github.com/apple/pkl/commit/441c0ec5da0c8ede9ef2d53e372355e4fbc67cb7) Fix incorrect substring
### 📊 Changes
**1 file changed** (+3 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-doc/src/main/kotlin/org/pkl/doc/PackageDataGenerator.kt` (+3 -1)
</details>
### 📄 Description
This fixes an issue that can possibly cause a StringIndexOutOfBoundsException when generating pkldoc.
The relative path should be based off the module name prefix, not the package name.
---
<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/1028
Author: @bioball
Created: 3/26/2025
Status: ✅ Merged
Merged: 4/15/2025
Merged by: @bioball
Base:
main← Head:fix-pkldoc-package-data-generator📝 Commits (1)
441c0ecFix incorrect substring📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
pkl-doc/src/main/kotlin/org/pkl/doc/PackageDataGenerator.kt(+3 -1)📄 Description
This fixes an issue that can possibly cause a StringIndexOutOfBoundsException when generating pkldoc.
The relative path should be based off the module name prefix, not the package name.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.