Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent overwriting existing wakatime-project files #1104

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

alanhamlett
Copy link
Member

@alanhamlett alanhamlett commented Sep 26, 2024

The actual bugfix is here:

https://github.com/wakatime/wakatime-cli/pull/1104/files#diff-44583ee0c75a940c6992cc809657633fb3b289b0d10dccc3f0574ba132f93ad0R312

Also creates the offline db, log file, and wakatime-project file with 0644 permission instead of 0600.

The rest of the changes are just cleanup.

@alanhamlett alanhamlett self-assigned this Sep 26, 2024
@alanhamlett alanhamlett added the bug Something isn't working label Sep 26, 2024
@alanhamlett alanhamlett merged commit d32ccc3 into develop Sep 26, 2024
20 of 21 checks passed
@alanhamlett alanhamlett deleted the bugfix/file-detector branch September 26, 2024 12:16
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 88.46154% with 3 lines in your changes missing coverage. Please review.

Project coverage is 63.11%. Comparing base (86d6c1d) to head (a0c0421).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
pkg/project/project.go 62.50% 2 Missing and 1 partial ⚠️
@@             Coverage Diff             @@
##           develop    #1104      +/-   ##
===========================================
- Coverage    63.12%   63.11%   -0.02%     
===========================================
  Files          383      383              
  Lines        16562    16565       +3     
===========================================
  Hits         10455    10455              
- Misses        5539     5541       +2     
- Partials       568      569       +1     
Flag Coverage Δ
unittests 63.11% <88.46%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/run.go 42.43% <100.00%> (ø)
pkg/offline/offline.go 55.74% <100.00%> (ø)
pkg/project/file.go 73.07% <100.00%> (-1.93%) ⬇️
pkg/project/git.go 63.59% <100.00%> (ø)
pkg/project/mercurial.go 73.17% <100.00%> (ø)
pkg/project/subversion.go 67.94% <100.00%> (ø)
pkg/project/tfvc.go 86.95% <100.00%> (ø)
pkg/project/project.go 93.30% <62.50%> (-0.53%) ⬇️

@alanhamlett alanhamlett mentioned this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants