~xenrox/hut#55: 
Modify an existing subdirectory of a website

Greetings,

I'm trying to figure out a way to update one file in my website without overwriting the existing contents of that subdirectory.

Some more detail: I'm attempting to upload a file (a curriculum vitae) from one pipeline into a pre-published website (sourcehut pages) (handled in another pipeline).

This build log builds the curriculum vitae, places it in a tar archive (such that the only thing contained within is a cv.pdf file) and runs:

 hut pages publish cv.tar.gz --domain grtcdr.tn --subdirectory assets

I had expected hut to unarchive the tar file and place its contents in the website's assets subdirectory, what in fact happened was that hut overwrote the whole directory and then placed the cv.pdf file. I was therefore able to access cv.pdf but not some of the other files that were originally contained there.

I'd really appreciate it if hut could take use case into account, as that would really simplify making modifications from outside pipelines.

Status
RESOLVED CLOSED
Submitter
~grtcdr
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.

~xenrox 4 months ago

There is nothing on hut's side that can be currently done to support this use case. The pages.sr.ht API would need to implement this first, maybe you can ask in IRC or on the mailing list.

Otherwise you could create a new dedicated folder for assets which get uploaded by a different pipeline. Then you would not overwrite your other files.

~grtcdr 4 months ago

maybe you can ask in IRC or on the mailing list.

Okay, I'll do that.

Otherwise you could create a new dedicated folder for assets which get uploaded by a different pipeline. Then you would not overwrite your other files.

This leads to unwanted redundancy; I could create a cv subdirectory but then the path to the file would look like /cv/cv.pdf.

~xenrox REPORTED CLOSED 4 months ago

I will close this for now.

Will re-open if there are changes to the API.

Register here or Log in to comment, or comment via email.