Repository navigation
fix: dependency-sources reads in place; connector end names are not indexed - #33
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes the four review findings raised on #32, for a 0.3.1. None of them is in 0.3.0's release machinery.
syspi dependency-sourcesstaged every model in aos.MkdirTempdirectory and read it back. It now reads models in place:install.DependencyModels(root)returns[]ModelSource{Path, Data}andArchive.TextModels()reads the verified members straight from the ZIP. That one change removes two failures:TMPDIR;Tools.sysml,tools.sysml) were extracted onto one file, and the export reported the second text for both paths.The command also binds
commonFlags, so-offlineand-qare accepted as the README says of every project command (-offlinewas a usage error). The exported paths (dependency-<n>/<member>) are unchanged.Archive.ExtractTextModels,extractMemberandconfinedTohad no other caller and are removed.syspi bundleindex: in a.kermlfile, an unnamed connector with a named first end was indexed under the end's name:The scanner now treats the name as an end's when the separator between the two ends (
to,then,=) comes before the token that closes the connector's own declaration (from,first,of), forconnector,successionandbinding(KerML 8.2.5.5);allno longer replaces the keyword it qualifies. SysML is unaffected: its declaration separators differ and its tests are unchanged.Testing
TestTopLevelNames/kerml_named_connector_endsfailed before the fix (e1indexed five times).TestDependencySourcesReadInPlacerunsdependency-sources -offline -qwithTMPDIR/TMP/TEMPpointing at a missing directory, over an archive holdingTools.sysmlandtools.sysml; the 0.3.0 code fails both the flag and the missing directory.wasip1build of the command runs under a WASI host with only the project directory preopened.gofmt,go vet(alsoGOOS=windows),SYSPI_REQUIRE_VCS=1 go test ./...pass on Linux.Implemented in session Publish SysPI CLI to PyPI
Review with Devin · Open in Devin Desktop