-
Notifications
You must be signed in to change notification settings - Fork 327
Conversation
Hey @MattSurabian ! I apologize for the silence, I offered to pick this up on our side and got pulled away unexpectedly. I'm starting to review this now, myself having some prior experience doing this swap, but I wanted to set some expectations that it may take a few more days to fully review. Specifically, you mention some rough edges or gotchas that we need to think through, so we may see some iterations on this. Regardless thank you for kicking this off! I'm going to evaluate it as-is for now and then spend some time thinking and discussing the items you brought up with the team internally. We'll be in touch, and thanks again! |
Thanks @catsby, no sweat on the silence take your time. I just had some free cycles after Hashiconf and ran into the whole go-bindata fork drama when checking this project out for the first time. I've done a similar thing a few times before so thought I'd take a stab at it. Feel free to do whatever you think is best here. Happy to iterate on it with guidance, work together on it, or just toss it out in favor of a someone else's totally different approach. Have a good weekend! |
2eb6e7d
to
04ff322
Compare
Rebased latest main, resolved conflicts, and force pushed. Still no rush on this PR, I just noticed the conflicts and figured better to address em. |
04ff322
to
f1ae416
Compare
f1ae416
to
bd2f9f9
Compare
Hey @MattSurabian - I'm having a bit of trouble trying to get things to compile on my end. I found I had to make a directory |
Ah, I haven't actually tried to recompile since I rebased in the latest
main. I didn't have to make that directory or do anything else special. Let
me give this another check over the weekend and maybe we can connect next
week about the docker thing? I was running the server binary directly.
…On Fri, Nov 4, 2022, 17:39 Clint ***@***.***> wrote:
Hey @MattSurabian <https://github.com/MattSurabian> - I'm having a bit of
trouble trying to get things to compile on my end. I found I had to make a
directory ui/dist(?) and also delete internal/assets/prod.go. After that, make
bin did work but things like make docker/server do not. I know you
mention that in your PR but I'd like to see if we could address that before
merging. Are there any other steps you had to take to get this compiling?
Are you running the server directly?
—
Reply to this email directly, view it on GitHub
<#4014 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIU5NCQ7WVCLIRC73R5SS3WGV7AXANCNFSM6AAAAAARALS23U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
f3b4132
to
eebad0d
Compare
Ok, so I've rebased in the latest main (this time making sure to fully delete
|
Regarding the To allow the |
So I was thinking about the transition away from the existing embed calls and wondering if the cleanup should be a distinct Make task that could be added to the existing build task if this is merged and then removed at some later time? Might make the shift away from bindata less disruptive. |
@catsby I have some time to pick this up again and will resolve these conflicts. Wondering if you have thoughts on the comments I left in November? |
@catsby Due to the files this PR touches it is perpetually in conflict. Let me know if yall want to go a different direction with this or if you think the Make approach suggested above is worth an attempt as it has been a minute since I've checked in on this PR. |
Hey @MattSurabian! I sincerely apologize for the weeks/months of silence here. I think the best course here is to close this PR for now. I honestly appreciate the work you did here and I'm very sorry for not following up and providing the feedback needed to see this through. I'm grateful for your contribution (attempts here, at least) and again very sorry for not being responsive to you here. For now though I am going to close this. Thank you again. |
This is an attempt to handle #3638 and replace go-bindata with native embeds. The few naming changes and restructuring done here are not fully thought out, but figured this was enough to at least see if the approach is decent.
The ceb and cli initial config generation pieces seem to work without much issue but whether or not it's advisable to keep the same asset interface that go-bindata used is up for debate.
The ui asset loading portion works
but there are issues with how. The approach here also would impact CI jobs that build and publish static assets because the embded code no longer lives in the server'smake docker/server
is using the newly created UI module that I believe would be solved once this was merged but there could be issues with that approachgen
package. I haven't updated any of the circle CI config relating to static UI assets in this PR.What's included here does seem to build and correctly serve the ceb, initial configuration, and the UI when just using the
make bin
commands and working with the binary directly. Not sure if the implications on the changes to the UI actually make sense in the broader context of maintaining waypoint. It may be better to utilize embed's differently so that the generated embeded assets end up in the server'sgen
package like before but limitations onembed
directives not applying to parent directories makes that tricky.Happy to change the approach or abandon this entirely; curious to hear feedback anyway.