Make automodel and flow queries work without submodule.#2731
Conversation
4505966 to
c605cc9
Compare
c605cc9 to
d2eb366
Compare
7311059 to
4b1e320
Compare
|
Unfortunately it seems I had some issues with this:
I believe I have fixed both of these problems:
I think the solution to the second problem is not the most elegant one. I think the best would probably be to stop using |
4b1e320 to
259159d
Compare
|
So, this is creating a lock file in the downloaded library pack? It's generally something we should be avoiding since downloaded packs should be read-only. It looks like you have a cleanup job running that deletes the lock file, so that's a bit better. One concern I have is that you're likely to get different lock files over time as we release new transitive dependencies. Moving the queries to their own query pack would be a better approach, in my view. |
It was doing that for the automodel queries (after I integrated them), and that was actually what corrupted my pack directory (as per our discussion on slack) because it failed half way through creating a broken lock file. I have now removed that lock creation from the automodel and flow queries. It is now only used by the fetch queries which need it (and here the lock creation happens in a temp dir), but longer term I would prefer to remove the creation of the lock completely as it feels very risky to use. |
charisk
left a comment
There was a problem hiding this comment.
Looks good and works on my machine.
…sage-queries.ts Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com>
Resolve automodel and flow queries without submodule.
Checklist
ready-for-doc-reviewlabel there.