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

Extracting relative path instead of string manipulation #2

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

pranjalmohansaxena10
Copy link

@pranjalmohansaxena10 pranjalmohansaxena10 commented Feb 14, 2023

As mentioned in this issue, panic scenario could occur in gitignore.go Absolute() method when len(inputPath) >= len(basePath), so it's better to use filepath.Rel() native method from "path/filePath" package

@psych0der psych0der merged commit 7fe1534 into LambdaTest:master Feb 14, 2023
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