HiveMinds / HiveMinds/tw-install
Bashrc sync init check: change from check if file exists, to if doesn't exist.
- Dominant language
- Shell
- Stars
- 20
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
A task sync init should only be executed once, the first time you sync taskwarrior.
Currently, line 168-173 of ModifyFiles.java of method createLinesBashrc ensures the bashrc file checks if a boolean file that indicates it is the first time sync exists.
If the boolean file named getInitBool does NOT exists, it does treats it as not the first sync initiation. That means the getInitBool must remain existant until the end of time, or taskwarrior usage to prevent an unwanted task sync init.
It is safer to create that getInitBool file at the end of the tw installation (if it is a server/host installation), and to reverse that check, so that it just does a task sync init once at the first run, if that file exists, and then deletes the file.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in ModifyFiles.java, especially lines 168-173 and createLinesBashrc, then trace where getInitBool is created during installation. Verify the generated bashrc performs task sync init only on the first sync and that the marker is removed afterward; account for the server/host installation condition described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, shell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100