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

Uploader mangles upload paths #19

Open
deceze opened this issue Jun 15, 2022 · 2 comments · May be fixed by #20 or #21
Open

Uploader mangles upload paths #19

deceze opened this issue Jun 15, 2022 · 2 comments · May be fixed by #20 or #21

Comments

@deceze
Copy link

deceze commented Jun 15, 2022

Build step 1 produces a folder of files:

static/
  admin/
    css/
      ...
  rest_framework/
    css/
      ...

(The result of a Django collectstatic command.)

In step 2, I want to upload this to S3. I configure the Artefacts paths as static/ (or static/**, or static/**/*, or whatever, tried several variations.)

Problem: The uploader mangles the paths together, e.g.:

Uploading to <bucket name>/admin/css/work/docs/css/base.css

That "/work/" in there is a mixup of rest_framework; this path does not actually exist in the artefacts.

@JacKeTUs JacKeTUs linked a pull request Jun 23, 2022 that will close this issue
@JacKeTUs
Copy link

JacKeTUs commented Jun 23, 2022

I had the same problem as you, so i wrote a fix for it. Please, try that version

@deceze
Copy link
Author

deceze commented Jun 24, 2022

@JacKeTUs Excellent! Works like a charm.

@pierredeman pierredeman linked a pull request Sep 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants