Open xizhao opened 9 years ago
Hmm, that doesn't sound right. You'll get this error when a unit type ("LicenseUnit") isn't associated with an op ("graph") in the Srclibtoolchain file in the root directory of the toolchain.
For instance, this is the contents of Srclibtoolchain for srclib-go:
{
"Tools": [
{
"Subcmd": "scan",
"Op": "scan",
"SourceUnitTypes": [
"GoPackage"
]
},
{
"Subcmd": "graph",
"Op": "graph",
"SourceUnitTypes": [
"GoPackage"
]
},
{
"Subcmd": "depresolve",
"Op": "depresolve",
"SourceUnitTypes": [
"GoPackage"
]
}
]
}
Does it build correctly when caching is disabled?
@xizhao can you give us an update? Can it be replicated?
I have a toolchain that doesn't contain a graph step, but creates a new unit file type. When I try to build with old, stateful data, builds fail with the following error:
This is what I think is happening.
I see a few solutions:
This would be true if I removed the toolchain as well, so I would imagine this bug would manifest if toolchains were removed. Therefore I would also suggest not copying over files that don't match a tc unit type.