CircleCI-Archived / build-tools-orb

An orb with handy tools for use in CircleCI jobs
https://circleci.com/developer/orbs/orb/circleci/build-tools
MIT License
8 stars 9 forks source link

Bug fix: all env-info writes replace their log files entirely #14

Closed jrnail23 closed 5 years ago

jrnail23 commented 5 years ago

Checklist

I noticed when using the env-info command that the logs weren't actually accumulating data as intended. Rather, each write ended up replacing the previously written data from the same command execution.

for example, the build_info.log file should have 8 lines worth of content, but I was only getting 1 (the last one, CIRCLE_REPOSITORY_URL).

Description

This PR fixes the log writes so that the first write to each log creates/replaces anything there previously, while the ensuing writes are appended to their respective files.

iynere commented 5 years ago

🤦‍♀ thank you @jrnail23