Skip to content

Commit

Permalink
fix error in bin/createProjectSet.solo
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Oct 10, 2023
1 parent 5aae83c commit 0fb7ede
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
export CI="true"
$GSDEVKIT_STONES_ROOT/tests/test_help.sh
shell: bash
- name: run projet sets
- name: run project sets
run: |
export GEMSTONE_ROOT=${{ steps.setup-GsDevKit_stones.outputs.gemstone-product-path }}
export SUPERDOIT_ROOT=${{ steps.setup-GsDevKit_stones.outputs.superDoit-root }}
Expand Down
38 changes: 21 additions & 17 deletions bin/createProjectSet.solo
Original file line number Diff line number Diff line change
Expand Up @@ -102,33 +102,37 @@ doit
name := self projectSet.
self from
ifNotNil: [:fromPath |
projectSet := (self globalNamed: 'GDKProjectSet') fromPath: fromPath ifAbsent: [ self error: 'No project set found at ', fromPath printString, ' (', self basename, ')' ].
(self json isNil and: [ self json isNil])
ifFalse: [ self error: 'Must one and only one of --from, --empty or --json options', ' (', self basename, ')' ].
projectSet := (self globalNamed: 'GDKProjectSet')
fromPath: fromPath
ifAbsent: [ self error: 'No project set found at ', fromPath printString, ' (', self basename, ')' ].
projectSet
name: name;
parentRegistryName: stonesRegistry parentRegistryName;
parentRegistryPath: stonesRegistry parentRegistryPath ]
ifNil: [
projectSet := (self globalNamed: 'GDKProjectSet') newNamed: name inStonesRegistry: stonesRegistry.
self empty
ifFalse: [
| dict |
self json
ifNil: [ self error: 'Must specify one of --from, --empty or --json options', ' (', self basename, ')' ]
ifNil: [ self error: 'Must specify one and only one of --from, --empty or --json options', ' (', self basename, ')' ]
ifNotNil: [:fileName |
projectSet := (self globalNamed: 'GDKProjectSet') newNamed: name inStonesRegistry: stonesRegistry.
fileName asFileReference readStreamDo: [:stream |
dict := STON fromStream: stream ].
dict keysAndValuesDo: [:projectName :branch |
| specDict |
specDict := Dictionary new
at: 'revision'
put: branch;
at: 'gitUrls'
put: (Dictionary new
at: 'gs'
put: 'git@git.gemtalksystems.com:', projectName;
yourself);
yourself.
projectSet loadSpecs at: projectName put: specDict ] ] ] ].
fileName asFileReference readStreamDo: [:stream |
dict := STON fromStream: stream ].
dict keysAndValuesDo: [:projectName :branch |
| specDict |
specDict := Dictionary new
at: 'revision'
put: branch;
at: 'gitUrls'
put: (Dictionary new
at: 'gs'
put: 'git@git.gemtalksystems.com:', projectName;
yourself);
yourself.
projectSet loadSpecs at: projectName put: specDict ] ] ] ].
projectSet registryDir ensureCreateDirectory.
projectSet export.
stonesRegistry projectSets at: name put: projectSet registryPath.
Expand Down

0 comments on commit 0fb7ede

Please sign in to comment.