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

Always use absolute path when writing files #43

Open
semanser opened this issue Apr 1, 2024 · 0 comments
Open

Always use absolute path when writing files #43

semanser opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@semanser
Copy link
Owner

semanser commented Apr 1, 2024

We always expect an absolute path to the file that should be written:

dir := filepath.Dir(path)
err = dockerClient.CopyToContainer(context.Background(), container, dir, archive, types.CopyToContainerOptions{})

So this should be specified in the prompt.

Otherwise, it can sometimes lead to problems like this:

https://discord.com/channels/1221753114441420811/1221753115443855374/1224461580251430932

@semanser semanser added bug Something isn't working good first issue Good for newcomers labels Apr 1, 2024
@semanser semanser added this to the v0.3 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant