HiveMinds / HiveMinds/tw-install

Bashrc sync init check: change from check if file exists, to if doesn't exist.

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Installation Quality Robustness
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.