Skip to content

Conversation

@daftaupe
Copy link
Contributor

Hey,

this is an attempt at removing dependency on rice, as it's not supported for quite some time now and to use the go embed directive instead.

If anyone wants to test, I'll be happy to get feedbacks and fix things if they're broken.

So far, I've built the server directly with go build -o server . in the server directory, using the Makefile, and with the Dockerfile (using the make docker target).

I simply tried to upload a file (both through the web interface and the cli) and download it and it seems to work, but I'd like more testing if possible.
Regarding the assets/templates stuff, I have a webpage displayed once I run the server, so the embedding seems to work ok. I had to move the assets and templates directories under server/utils so that embed can use them (it's not possible to use upper directories from what I've understood so far).

I've changed the default port for the server when there is no configuration file as it makes it much easier to have the same port if it is being run in a container.

@depado
Copy link
Owner

depado commented Feb 25, 2025

I've been wanting to do this kind of maintenance job on goploader for a very long time but never found the time to do this.
Thanks a lot, I'll test this whenever I get the chance 😄

@depado depado marked this pull request as ready for review February 26, 2025 19:23
@depado depado changed the title Remove rice in the server feat(server): remove rice in the server Feb 26, 2025
@depado depado merged commit e607476 into depado:main Feb 26, 2025
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