Developers now have to ensure that their .govendor_packages does have a newline character in every line. When using the readarray function this is not required. For instance, using the readarray function allows the developer to have a .govendor_packages file without the need to have a newline at the end of the package definition as shown below:
Can you update the code you added to replace the readarray function so it can handle this situation and avoid forcing the developer to add that extra new line in the .govendor_packages file?
@jt-nti Substituting the invocation of the
readarray
function introduced an undesired side effect: https://github.com/IBM-Blockchain-Starter-Kit/build-lib/commit/80ae24d3e521d8f83c22cb187af16d543acbbc3d#diff-4232d04ac25a24d9be1857b4a35faf60R53.Developers now have to ensure that their
.govendor_packages
does have a newline character in every line. When using thereadarray
function this is not required. For instance, using thereadarray
function allows the developer to have a.govendor_packages
file without the need to have a newline at the end of the package definition as shown below:However, the developer is now forced to ensure their file looks like this instead (see the extra line):
Can you update the code you added to replace the
readarray
function so it can handle this situation and avoid forcing the developer to add that extra new line in the.govendor_packages
file?