Skip to content
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

Fixes runme when it attempts to access unreadable files or directories #646

Merged

Conversation

pastuxso
Copy link
Collaborator

@pastuxso pastuxso commented Aug 5, 2024

Handling the os.ErrPermission when an error occurs while trying to read files without proper permissions.

Closes: #645

@pastuxso pastuxso linked an issue Aug 5, 2024 that may be closed by this pull request
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from 5a5535d to 097e13f Compare August 7, 2024 16:49
pkg/project/project.go Outdated Show resolved Hide resolved
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from d5e3662 to 81da0e8 Compare August 7, 2024 23:29
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from 81da0e8 to 8c75900 Compare August 7, 2024 23:36
@pastuxso pastuxso requested a review from sourishkrout August 7, 2024 23:36
@pastuxso pastuxso marked this pull request as ready for review August 7, 2024 23:36
@pastuxso pastuxso self-assigned this Aug 8, 2024
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

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

Some questions.

pkg/project/project.go Outdated Show resolved Hide resolved
pkg/project/project.go Outdated Show resolved Hide resolved
main_test.go Outdated Show resolved Hide resolved
pkg/project/project.go Outdated Show resolved Hide resolved
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from 2897caa to 70e97f1 Compare August 9, 2024 16:29
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from bca13ad to 399c008 Compare August 9, 2024 23:08
@pastuxso pastuxso force-pushed the 645-runme-attempts-to-access-unreadable-files-or-directories branch from 399c008 to 3e518a1 Compare August 9, 2024 23:16
@pastuxso pastuxso marked this pull request as draft August 9, 2024 23:26
@sourishkrout
Copy link
Member

@pastuxso is this still in draft since it's gotten two reviews already?

@pastuxso pastuxso marked this pull request as ready for review August 12, 2024 15:02
@pastuxso
Copy link
Collaborator Author

@sourishkrout ready for review. I'll push in a separate branch an attempt to improve test running using a non-root user within Docker.

@sourishkrout sourishkrout self-requested a review August 12, 2024 15:33
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

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

almost there

pkg/project/project.go Show resolved Hide resolved
@pastuxso pastuxso requested a review from sourishkrout August 12, 2024 20:02
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

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

✅ LGTM

Copy link

sonarcloud bot commented Aug 12, 2024

@pastuxso pastuxso merged commit 7d3243d into main Aug 12, 2024
7 checks passed
@pastuxso pastuxso deleted the 645-runme-attempts-to-access-unreadable-files-or-directories branch August 12, 2024 20:13
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.

runme attempts to access unreadable files or directories
3 participants