Skip to content

Fix SourceRoot not being respected by globals resource on export#1113

Merged
isc-dchui merged 2 commits intomainfrom
fix-1112
Apr 3, 2026
Merged

Fix SourceRoot not being respected by globals resource on export#1113
isc-dchui merged 2 commits intomainfrom
fix-1112

Conversation

@isc-dchui
Copy link
Copy Markdown
Collaborator

Description

Fixes #1112

The main issue is that SourceRoot was being ignored by the globals resource processor during export but not during reload, so packaging a module with a globals resource would not include the file in the correct location. This change fixes it by making both export and (re)load respect the SourceRoot.

Testing

New integration test based on the data in the wiki.:
Test.PM.Integration.GlobalsPackaging

Checklist

  • This branch has the latest changes from the main branch rebased or merged.
  • Changelog entry added.
  • Unit (zpm test -only) and integration tests (zpm verify -only) pass.
  • Style matches the style guide in the contributing guide.
  • Documentation has been/will be updated
    • Source controlled docs, e.g. README.md, should be included in this PR and Wiki changes should be made after this PR is merged (add an extra issue for this if needed)
  • Pull request correctly renders in the "Preview" tab.

Copy link
Copy Markdown
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

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

@isc-dchui 2 small comments

@isc-dchui isc-dchui requested a review from isc-kiyer April 3, 2026 15:10
@isc-dchui isc-dchui merged commit e456ee3 into main Apr 3, 2026
16 checks passed
@isc-dchui isc-dchui deleted the fix-1112 branch April 3, 2026 18:26
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.

Globals resource does not package with correct path

2 participants