-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add symlink parameter #468
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
61d47c1
feat(args): add WeaverArgs struct for command options with symlink su…
Leo6Leo 56a6c8f
feat(schema): add follow_symlinks option to load_semconv_specs for sy…
Leo6Leo 34bf49b
feat(semconv): add follow_symlinks parameter to load_semconv_specs fo…
Leo6Leo 3e68545
feat(registry): add WeaverArgs for improved command options with syml…
Leo6Leo a0ac163
fix: fix the tests
Leo6Leo d974513
refactor: rename WeaverArgs to CommonRegistryArgs for clarity and con…
Leo6Leo 2c37b60
style: format code with cargo fmt
Leo6Leo 44664c0
fix(refactor): move CommonRegistryArgs definition to mod.rs and updat…
Leo6Leo 7d589cc
Merge remote-tracking branch 'upstream/main' into feat/add-symlink-param
Leo6Leo 47a2656
feat(tests): add symbolic link handling tests for registry generation
Leo6Leo fd07908
Merge remote-tracking branch 'upstream/main' into feat/add-symlink-param
Leo6Leo 38154d6
Apply suggestions from code review
Leo6Leo f985907
fix(refactor): update symbolic registry paths and relocate symbolic link
Leo6Leo 9327bd9
Merge remote-tracking branch 'upstream/main' into feat/add-symlink-param
Leo6Leo 328d54f
Merge branch 'main' into feat/add-symlink-param
Leo6Leo 80a4cb5
Merge branch 'main' into feat/add-symlink-param
lquerel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../crates/weaver_codegen_test/semconv_registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main issue I’m facing is having a unit test in the main crate that depends on test data from another crate (
crates/weaver_codegen_test
). I think it would be better to have this symbolic link in thedata
directory of the main crate to avoid this kind of dependency, which might cause problems at some point.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing that out! The reason I created the symbolic link in
crates/weaver_codegen_test
is because, based on the function test_registry_generate, it appears to rely on the registry located incrates/weaver_codegen_test/semconv_registry/
.I think this indicates that the test depends on the
weaver_codegen_test
crate to access the registry. To ensure the required dependencies are properly linked, I created the symbolic link there to align with this structure.But I have created the commit to reflect the suggestion you recommend, PTAL f985907 @lquerel