Skip to content

(v3) project load spec must specify a diskUrl: or gitUrl: or trouble will ensue #967

@dalehenrich

Description

@dalehenrich

This is a properly specified load spec:

RwLoadSpecificationV2 {
	#projectName : 'RwCAQ',
	#projectSpecFile : 'rowan/project.ston',
	#gitUrl : 'git@github.com:GemTalk/RwCAQ.git',
	#revision : 'rowan.v3',
	#componentNames : [
		'Core'
	],
	#platformProperties : {
		'gemstone' : {
			'allusers' : {
				#defaultSymbolDictName : 'Globals'
			}
		}
	},
	#comment : ''
}

If the gitUrl or diskUrl spec is missing, the project will load just fine (if it is already present on disk), however you will not be able do a diff because the RwNoRepositoryDefinitionV2 will be used and that means the no interaction with the disk based repo is possible ...

Upon reading a loadSpec for a project or for a required project, we must check that a proper source location url has been specifiied.

Note that this is more likely to occur when a project is loaded as a required project that is already in ROWAN_PROJECTS_HOME ... but if it's on disk specification is missing a gitUrl or diskUrl, then when the project is read for comparison things will go bad ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions