Deploy folder deploys as admin
This causes user code to not be able to overwrite deployed files.
https://www.chiefdelphi.com/t/writing-to-a-json-file/379567/2
So we want the /deploy/ folder to be deployed as lvuser? And does the rest of the deploy need to be as admin?
From what I understand, the deploying user is set as admin here: https://github.com/wpilibsuite/GradleRIO/blob/6646f69cd953c03a1be98c96662a18e1075151a6/src/main/groovy/edu/wpi/first/gradlerio/frc/RoboRIO.groovy#L59
Code is run on the RIO as lvuser.
We either change the whole deploy to be done as lvuser (in the linked line above) or split into two deploys: deploying the code as admin and deploying the /deploy/ folder as lvuser. I believe that the former is better. @ThadHouse - what are your thoughts?