Symlinking for generic project folder #2

Open
opened 2022-07-18 08:52:59 -05:00 by noah · 1 comment
Owner

Add symlinks for run script in the generic project folder

Expected Behavior

Have a single run file in the build folder that can be used for all starts.

Current Behavior

Run script needs to be copied to the generic project folder, and paths need to be altered. This can lead to multiple, different run scripts that will need to be reviewed by users each time to identify the pwd and its relation to the binary.

Possible Solution

  1. Have a PROJ_ROOT variable at the root of the project, and symlink the run script from the build folder into the generic project folder. Set paths in the run script using PROJ_ROOT.
  2. Have the output (DOTFILE.dot, ag.svg, states.txt, states.json) be stored in the pwd, not the build directory. DOT and svg should be there already, but the state files are saved to the build directory.
<!--- Provide a general summary of the issue in the Title above --> Add symlinks for run script in the generic project folder ## Expected Behavior <!--- Tell us what should happen --> Have a single run file in the build folder that can be used for all starts. ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> Run script needs to be copied to the generic project folder, and paths need to be altered. This can lead to multiple, different run scripts that will need to be reviewed by users each time to identify the pwd and its relation to the binary. ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> 1. Have a PROJ_ROOT variable at the root of the project, and symlink the run script from the build folder into the generic project folder. Set paths in the run script using PROJ_ROOT. 2. Have the output (DOTFILE.dot, ag.svg, states.txt, states.json) be stored in the pwd, not the build directory. DOT and svg should be there already, but the state files are saved to the build directory.
Author
Owner

After further discussion with Kayden Kehe, it was decided that symlinking may make things more complicated for new users. For the time being, it is planned to have a separate run script in each project folder, but pass in a file path argument for where to store output files.

After further discussion with Kayden Kehe, it was decided that symlinking may make things more complicated for new users. For the time being, it is planned to have a separate run script in each project folder, but pass in a file path argument for where to store output files.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: noah/ag_gen#2
No description provided.