Skip to content

fix: context dir relative path point to source dir - #8260

Merged
TomChv merged 2 commits into
dagger:mainfrom
TomChv:fix/context-dir-relative-path-point-to-source-dir
Aug 28, 2024
Merged

TomChv merged 2 commits into
dagger:mainfrom
TomChv:fix/context-dir-relative-path-point-to-source-dir

Conversation

@TomChv

@TomChv TomChv commented Aug 28, 2024

Copy link
Copy Markdown
Member

Follow up to #7744 to point relative path to source dir instead of root dir.

Follow up to dagger#7744 to point relative path to source dir instead of root dir.

Signed-off-by: Tom Chauveau <[email protected]>
@TomChv
TomChv requested a review from jedevc August 28, 2024 12:20
@TomChv TomChv self-assigned this Aug 28, 2024
@TomChv TomChv added this to the v0.12.6 milestone Aug 28, 2024

@jedevc jedevc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, one naming nit.

Comment thread core/modulesource.go Outdated
}
// If context is found, we can create the module root path by joining the
// context path with the source root subpath
moduleRootAbsPath = filepath.Join(contextAbsPath, sourceSubPath)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isn't the moduleRootAbsPath anymore - the naming is wrong, and the doc string for this return value is also not entirely right.

@TomChv
TomChv merged commit 3f3a4a8 into dagger:main Aug 28, 2024
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