elastic / elastic/elastic-package
Add check about permissions folder for tmp/service_logs
- Dominant language
- Go
- Stars
- 72
- Forks
- 141
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 55
Description
There has been some times, that the folder `.elastic-package/tmp/service_logs` is owned by a different user and tests could not write the required files in that folder.
That folder is used in tests through the placeholder `SERVICE_LOGS_DIR`.
It would be helpful to add a check to detect the permisisons and ownership of this folder. If that folder cannot be changed to the desired permissions, probably elastic-package should fail with an error about it.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the handling of the SERVICE_LOGS_DIR placeholder and the tests that use .elastic-package/tmp/service_logs. Check how folder ownership and permissions are currently handled, then verify that an unusable folder produces a clear failure from elastic-package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100