Edge-home-orchestration-go: [Refactoring] Build script

Created on 25 Feb 2021  ·  3Comments  ·  Source: lf-edge/edge-home-orchestration-go

How about refactoring build.sh file a little bit shorter?

  • [x] Remove PKG_LIST and use a relative path to run test scenarios.
  • [x] Streamline code in terms of BUILD_TAGS such as secure, mnedc.
  • [x] Delete duplicated code that can be eliminated
refactoring

Most helpful comment

I think that BUILD_TAGS: secure should be enabled by default (and I will try to do it soon). But for ease of development, I plan to add a BUILD_TAGS:unsecure, but only as a tag for the build!

All 3 comments

Good idea, we can remove duplicated code and check on refactoring the file. Check for all the functions and might be make separate .sh for functions. Just my thought, need to investigate how much it would add value. Lets check on refactoring to make build script simple and understandable.

I think that BUILD_TAGS: secure should be enabled by default (and I will try to do it soon). But for ease of development, I plan to add a BUILD_TAGS:unsecure, but only as a tag for the build!

I think that BUILD_TAGS: secure should be enabled by default (and I will try to do it soon). But for ease of development, I plan to add a BUILD_TAGS:unsecure, but only as a tag for the build!

@tdrozdovsky Thank you for sharing your idea. I hope to set secure as a default.
In order to do so, it seems that the usability of Security Manager should be improved.
Let's talk about security components like Verifier and Authenticator by opening a new issue.

Was this page helpful?
0 / 5 - 0 ratings