-
Notifications
You must be signed in to change notification settings - Fork 127
Decouple repository root resolver from internal logic #2957
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
Open
teresaromero
wants to merge
44
commits into
elastic:main
Choose a base branch
from
teresaromero:2797-detach-repo-root
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
75dae97
improve comments for Link struct and its fields in linkedfiles.go
teresaromero 83e13ad
refactor: enhance newLinkedFile function for better error handling an…
teresaromero 9139bb2
test: add unit test for newLinkedFile function to validate link file …
teresaromero 60672b2
decoupled repoRoot from lint cmd and docs
teresaromero 211c7c9
update repository root handling across multiple components
teresaromero 0b61910
standardize repository root handling across build, lint, and links ma…
teresaromero ce07ec3
ensure repository root is properly closed in multiple command actions…
teresaromero 0deae99
add repoRoot parameter to build command action
teresaromero 1fc643a
update linked file handling to use absolute paths and improve clarity
teresaromero 6820b49
add copyright notice to packages_test.go file
teresaromero 2c16cab
refactor linkedfiles_test.go to use os.MkdirAll for directory creation
teresaromero 403527e
implement repository root handling in benchmark and install commands,…
teresaromero 96d5129
read repoRoot at test runner cmd
teresaromero 90ba403
refactor linkedfiles_test.go to use filepath.Join for constructing li…
teresaromero aeeee55
inject repoRoot to needed test options
teresaromero 385fc89
Update data stream tests to include repoRoot parameter
teresaromero 9edca9b
Ensure repoRoot is closed in all data stream test cases
teresaromero c60b836
Remove unnecessary directory change in createAndCheckDataStream function
teresaromero 679c566
Merge branch 'main' into 2797-detach-repo-root
teresaromero ef3497f
refactor at copyLicenceTextFile to ensure license inside reporoot, re…
teresaromero 1f591bf
Merge branch 'main' into 2797-detach-repo-root
teresaromero ec2a7e1
refactor linkefiles management to use relative paths and root
teresaromero 169777f
revert linksDefinitionsFilePath from public to private
teresaromero 9229664
add validation for RepoRoot in Options
teresaromero 0436a37
clarify variable name for included file path in newLinkedFile function
teresaromero 9793ffd
simplify checksum comparison logic in newLinkedFile function
teresaromero 5d6ef55
refactor findRepositoryLicensePath to use repoRoot
teresaromero ecfeb9b
refactor copyLicenseTextFile to use repoRoot.Stat
teresaromero 4412b0b
refactor FindPackageRoot and handle error on FindPackageRootFrom calls
teresaromero 9b7a721
remove repoRoot.Write and Read
teresaromero 091d117
Merge branch 'main' into 2797-detach-repo-root
teresaromero 66274da
rename repoRoot to repositoryRoot for clarity
teresaromero 5429121
fix: correct grammar in comments for license file handling
teresaromero b3e73ac
update copyLicenseTextFile function to improve clarity and error hand…
teresaromero 563522f
enhance findRepositoryLicensePath function to check for empty license…
teresaromero bfe509e
improve path handling in TestFindRepositoryLicense and TestCopyLicen…
teresaromero 59436db
rename test function and update comment for clarity
teresaromero 248a704
remove unnecessary blank lines in test files for improved readability
teresaromero c74c6c8
rename PackageRoot to PackageRootPath for consistency across builder …
teresaromero 68ed0d8
add repository root handling in benchmark and test runner commands
teresaromero 54d8502
rename newLinkMap to newEmptyLinkMap and revert related functions to …
teresaromero 3b32fcc
update findRepositoryLicensePath to use os.ReadFile and improve error…
teresaromero 8af2c99
remove RepositoryRoot references from FleetAgentPolicy, rename RootPa…
teresaromero d08ed58
refactor copyLicenseTextFile to enforce absolute target license path …
teresaromero 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.