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

fix: windows absolute path logic #728

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

drpebcak
Copy link
Contributor

@drpebcak drpebcak commented Aug 6, 2024

this fixes an issue seen at least in clio, with the ability to load external agents.

@drpebcak
Copy link
Contributor Author

drpebcak commented Aug 6, 2024

This change was originally suggested by Darren, but I'm not sure he intended it to be the actual fix since it changes the behavior mentioned in the comment. Does anyone have an alternate suggestion?

@ibuildthecloud
Copy link
Contributor

The comment is correct, but in the wrong place. We want to use path.Join and not filepath.Join. As some point the IsAbs check was added and the comment should have gone inside the if. We want the comment because it still holds true. IsAbs does not mutate the path but just checks for both cases.

@drpebcak drpebcak merged commit ec58517 into gptscript-ai:main Aug 6, 2024
10 checks passed
@drpebcak drpebcak deleted the windows-path branch August 6, 2024 21:54
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