GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Holiday data refreshing script produces no data on macOS when installed via `brew`?

Open
#2,734 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

## What I did

I ran [this script](https://github.com/GothenburgBitFactory/taskwarrior/blob/e60fdafdaa461250d9a82ecfb20251473ba8c676/doc/rc/refresh) to fetch holidays for my locale. I have substituted my locale for `en-US` here but the error remains the same.

The locale exists on holidata.net, I have used the Timewarrior equivalent of this script successfully.

```sh
(
cd "$(brew --prefix)/opt/task/share/doc/task/rc" &&
chmod +x refresh &&
./refresh --locale en-US
)
```

## What I expected to happen

A holiday file for my locale with holidays for the current (and maybe next) year will be populated.

## What actually happened

Running the script without modifications:

```
cs-CZ
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
da-DK
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
de-AT
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
de-BE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
de-CH
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
de-DE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
el-GR
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
en-CA
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
en-GB
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
en-NZ
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
en-US
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
es-CO
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
es-ES
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
es-US
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
et-EE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
fi-FI
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
fr-BE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
fr-CA
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
fr-FR
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
hr-HR
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
hu-HU
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
is-IS
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
it-IT
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
nb-NO
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
nl-BE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
nl-NL
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
pl-PL
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
por-P
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
pt-BR
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
pt-PT
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
ru-RU
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
sk-SK
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
sv-FI
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
sv-SE
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
tr-TR
./refresh: line 7: ../../scripts/add-ons/update-holidays.pl: No such file or directory
```

After correcting the path:

```
cs-CZ

Data for cs-CZ, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for cs-CZ, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

da-DK

Data for da-DK, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for da-DK, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

de-AT

Data for de-AT, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for de-AT, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

de-BE

Data for de-BE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for de-BE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

de-CH

Data for de-CH, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for de-CH, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

de-DE

Data for de-DE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for de-DE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

el-GR

Data for el-GR, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for el-GR, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

en-CA

Data for en-CA, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for en-CA, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

en-GB

Data for en-GB, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for en-GB, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

en-NZ

Data for en-NZ, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for en-NZ, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

en-US

Data for en-US, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for en-US, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

es-CO

Data for es-CO, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for es-CO, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

es-ES

Data for es-ES, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for es-ES, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

es-US

Data for es-US, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for es-US, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

et-EE

Data for et-EE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for et-EE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

fi-FI

Data for fi-FI, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for fi-FI, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

fr-BE

Data for fr-BE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for fr-BE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

fr-CA

Data for fr-CA, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for fr-CA, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

fr-FR

Data for fr-FR, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for fr-FR, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

hr-HR

Data for hr-HR, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for hr-HR, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

hu-HU

Data for hu-HU, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for hu-HU, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

is-IS

Data for is-IS, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for is-IS, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

it-IT

Data for it-IT, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for it-IT, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

nb-NO

Data for nb-NO, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for nb-NO, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

nl-BE

Data for nl-BE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for nl-BE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

nl-NL

Data for nl-NL, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for nl-NL, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

pl-PL

Data for pl-PL, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for pl-PL, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

por-P

Data for por-P, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for por-P, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

pt-BR

Data for pt-BR, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for pt-BR, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

pt-PT

Data for pt-PT, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for pt-PT, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

ru-RU

Data for ru-RU, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for ru-RU, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

sk-SK

Data for sk-SK, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for sk-SK, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

sv-FI

Data for sv-FI, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for sv-FI, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

sv-SE

Data for sv-SE, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for sv-SE, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

tr-TR

Data for tr-TR, for 2022 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.

Data for tr-TR, for 2023 could not be downloaded. This could
mean that you do not have an internet connection, or that
Holidata.net does not support this locale and/or year.
```

task diag:

```
task 2.6.1
Platform: Darwin

Compiler
Version: Apple LLVM 13.0.0 (clang-1300.0.29.3)
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17

Build Features
CMake: 3.21.3
libuuid: libuuid + uuid_unparse_lower
libgnutls: 3.6.16
Build type: Release

Configuration
File: ~/.config/task/taskrc (found), 2121 bytes, mode 100644
Data: ~/.config/task/data (found), dir, mode 40755
TASKDATA: ~/.config/task/data
Locking: Enabled
GC: Enabled
$VISUAL: nvim
Server:
CA: -
Certificate: -
Key: -
Trust: strict
Ciphers: NORMAL
Creds:

Hooks
System: Enabled
Location: ~/.config/task/hooks
(-none-)

Tests
Terminal: 231x53
Dups: Scanned 9 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 9 tasks for broken references:
No broken references found
```

## Questions

- Is the Perl script outdated?
- Am I missing a dependency of some kind?
- How come my data folder is in `~/.config/task/data` when I have `data.location` set to `$XDG_DATA_HOME/task`?

---

Thank you for Taskwarrior – it's an amazing piece of software.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.