[Refactor] Changed stanza.proj tree structure #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes JITX-7191
This commit changes the way that the
stanza.proj
files are created for projects.In the old way, the
.slm/stanza.proj
was effectively theroot
stanza project file. This meant that to build, slm had to change directories to.slm
and then run thestanza build
there.This caused a lot of complexity. It meant that I couldn't just run
stanza build
at the root directory. It also broke dependency resolution in vscode via the stanza language server.This commit creates the root
stanza.proj
at the root of the project and then has the rootstanza.proj
import.slm/stanza.proj
. The.slm/stanza.proj
still manages all of the resolved dependencies of the project and abstracts that away from the end user. With this setup:stanza build
from the rootslm
executable. Specifically - I moved the-pkg pkgs
command line option and put it in thestanza.proj
file for themain
target. This meansstanza build
will just work.Notes
stanza.proj
file.cmd-click
in vscode on dependencies in my project and they resolve to.slm/deps/<project>/...
. That all seems to be working well.