Repository navigation
ags: 1.8.2 -> 2.2.1 - #373562
ags: 1.8.2 -> 2.2.1#373562
Conversation
There was a problem hiding this comment.
BTW, because of this single line I wasted an entire day
This comment was marked as outdated.
This comment was marked as outdated.
JohnRTitor
left a comment
There was a problem hiding this comment.
Please also add a release-notes, prompting users to switch to ags_1 if they want to retain compatibility with previous config.
As this is a backwards incompatible change, we should not backport it.
421966a to
83bd23a
Compare
|
I'll get to reviewing Friday of next week. (Will be busy for work for the next week till the weekend) If anyone wants to review this and merge, they can go ahead. |
There was a problem hiding this comment.
Something like "Typescript frontend of Widget system powered by Astal"
You can put more details/explain in longDescription
There was a problem hiding this comment.
I find your description a bit difficult to follow without any background context. In comparison, the description from upstream seems a bit clearer in this regard.
There was a problem hiding this comment.
I don't know, "Scaffolding CLI for Astal", doesn't seem to explain its purpose. On a quick search if someone wants a widget system, ags won't appear.
There was a problem hiding this comment.
Astal is the widget system, this is just a CLI for it
There was a problem hiding this comment.
I tried to revise the description for astal and ags a bit more, check now
9b190b5 to
f3a8a14
Compare
There was a problem hiding this comment.
You definitely should explain a bit here.
There was a problem hiding this comment.
As I understand this, this just gets XDG_DATA_DIRS at build time and extracts the needed paths from there and puts it in the file?
So this depends on builder's XDG_DATA_DIRS info? Isn't that impure/not reproducible?
There was a problem hiding this comment.
Kind of. Environment variables are secured by Nix sandbox, but this hard-codes library paths to one that are used in build time. However, I am unsure how to get those directories in runtime, and this seems like a bug that should be handled by upstream.
There was a problem hiding this comment.
I am worried that some dirs/paths from builder/Hydra may not exist in local machine.
@Aylur .
There was a problem hiding this comment.
It is very much a hack.
I could not find a way to reference the gir-1.0 paths at runtime so I ended up doing this. It is only polluted at build time with references to glib based libraries and even if something leaks into it from the outside environment it does not have any effect as this is only used to generate types for LSPs. It does not have an effect at runtime.
There was a problem hiding this comment.
The function that uses this variable is called in ags init and ags types, so it is pretty much a runtime thing
There was a problem hiding this comment.
@Aylur, fmt.Println(os.Getenv("XDG_DATA_DIRS")) has /nix/store/g8lbqn7mw42pddh57bz9570sfc7fajkf-ags-2.2.1/share as a first item
There was a problem hiding this comment.
Hard to say what is the proper solution without knowing why does the program need access to GIR files at runtime. Typically, those are used at build time to generate bindings modules for static languages, and our gobject-introspection setup hook already populates XDG_DATA_DIRS at build time from dependencies:
As @PerchunPak says, this is not a problem with reproducibility thanks to the sandbox. The main issue would be that it might pick up GIR files pointing to typelibs for build platform when doing a cross-compilation but this software looks complex enough that cross-compilation will probably be broken in multiple different ways anyway so I would not worry about it. You can try strictDeps = true for peace of mind.
I also do not understand the reason for a custom environment variable rather than just using XDG_DATA_DIRS (following XDG basedir spec) + GI_GIR_PATH.
We might want to switch the setup hook to the latter to make GIR paths easier to pick up.
There was a problem hiding this comment.
@jtojnar, this is a build tool, so we need GIR files to generate types while user develops their application.
And it fails with strictDeps = true. But because ags.bundle (the thing that developer would use) causes a rebuild of ags, it should not be a problem (unless many edge-cases, of course).
So, there is no better solution than what we already have...
e51bb16 to
4d62e09
Compare
|
I like the upstream approach, perhaps we can use that? (Aylur/ags#673) |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-373562-to-release-24.11 origin/release-24.11
cd .worktree/backport-373562-to-release-24.11
git switch --create backport-373562-to-release-24.11
git cherry-pick -x 5761b6fa1c513ca2249c92d28802053e7c4a129a f06ee37f84ab4967d73efdce9660c86b0224330c 7bd40e30edc20db988659ef4ec407ba3c65379a4 |
https://github.com/Aylur/ags: Scaffolding CLI for Astal+TypeScript
This is basically a complete rewrite (as upstream was rewritten in Go). It is required for #350324, I also built a completely functioning version of hyprpanel using this, so it totally works!
Also, it is almost 1 to 1 copy of the upstream Nix implementation, but this is much more versatile.
Closes #306446
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)CC @FliegendeWurst @foo-dogsquared @JohnRTitor
Add a 👍 reaction to pull requests you find important.