You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added gRPC functions to manage libraries in profiles (#3019)
* Added gRPC functions to manage libraries in profiles
* Removed ProfileDump gRPC command.
As stated by @per1234:
> Build profile data is already provided via the LoadSketch method, so it
> seems that even a mechanism that is truly for getting profile data should
> be implemented by simply expanding the SketchProfile message to contain
> all the data of the build profile (actually kind of silly that it
> currently only provides a subset of the profile data).
#3019 (comment)
* Moved SketchProfileLibraryReference in the proper commono.proto file
* linter: removed unneeded type specification
* Renamed SketchProfileLibraryReference -> ProfileLibraryReference
* Renamed InitProfile -> ProfileCreate
And also corresponding messages:
InitProfileRequest -> ProfileCreateRequest
InitProfileResponse -> ProfileCreateResponse
* Small refactoring, no code change
* Fixed error messages
* Removed unnecessary type specifier
* Refactored libraryResolveDependencies.
The function is now split into two functions:
- librariesGetAllInstalled that requires a librariesmanager.Explorer.
- libraryResolveDependencies that requires only a librariesindex.Index
and do not require anymore a librariesmanager.Explorer.
* Added support for 'dependency:' field in profiles libraries
* ProfileLibAdd and ProfileLibRemove can now cleanup unneeded dependencies
* Better error messages
* Simplified Profile.RemoveLibrary(...) method.
* Fixed algorithm for determination of required deps
* Updated docs
* Rename DuplicateProfileError -> ProfileAlreadyExitsError
* Removed useless field in gRPC ProfileCreateResponse
* fix: ProfileCreate sets the new profile as default only if asked to do so
* Improved docs
Co-authored-by: Per Tillisch <accounts@perglass.com>
* Applied code review suggestion
* Using cmp.Or helper
---------
Co-authored-by: Per Tillisch <accounts@perglass.com>
0 commit comments