buildsafedev / bsf

Developer-centric tool to secure your software supply chain.
https://buildsafe.dev
Apache License 2.0
72 stars 13 forks source link

feat: sort the dev and runtime packages in bsf.hcl #132

Closed hanshal101 closed 2 weeks ago

hanshal101 commented 2 weeks ago

Fixes #126 Closes #126

Description

This PR sorts the Development and the Runtime packages present in the bsf.hcl in alphabetical order. This works with both when the buildsafe is initialized and when packages are searched and added to the environment.

Additional

There might be better way of implementing the sortPackages function in the cmd\init\config.go. As the same logic is used on the both cases. We can put this function to set.go in pkg\strings\set.go