timex icon indicating copy to clipboard operation
timex copied to clipboard

There is an issue with Tzdata 2024b - Produces the following error:

Open kairos0ne opened this issue 1 year ago • 6 comments

Steps to reproduce

Install Timex {:timex, "~> 3.0"},

Description of issue

There is a compile time error due to fault in Tzdata 2024b that can seen here: https://github.com/lau/tzdata/issues/143

image

kairos0ne avatar Sep 06 '24 06:09 kairos0ne

I'm also seeing this with each deploy of our phoenix app.

ian-darby avatar Sep 06 '24 20:09 ian-darby

A fix has been merged in tzdata https://github.com/lau/tzdata/pull/146

acrogenesis avatar Sep 09 '24 00:09 acrogenesis

adding tzdata using git to the mix.exs solves the issue.

defp devs do
  [
    {:timex, "~> 3.7"},
    {:tzdata, git: "[email protected]:lau/tzdata.git", override: true}
  ]
end

acrogenesis avatar Sep 09 '24 00:09 acrogenesis

adding tzdata using git to the mix.exs solves the issue.

defp devs do
  [
    {:timex, "~> 3.7"},
    {:tzdata, git: "[email protected]:lau/tzdata.git", override: true}
  ]
end

FYI This throws an error in my project

* Updating tzdata ([email protected]:lau/tzdata.git)
no such identity: /Users/DK/.ssh/cd: No such file or directory
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed

Using {:tzdata, git: "https://github.com/lau/tzdata.git", override: true} instead works 👌

❯ mix deps.get
* Updating tzdata (https://github.com/lau/tzdata.git)
Resolving Hex dependencies...
Resolution completed in 1.083s

avishov avatar Sep 09 '24 12:09 avishov

@avishov When using [email protected] it uses ssh to authenticate to GitHub that's why it's failing as it isn't finding a ssh key to use.

acrogenesis avatar Sep 09 '24 16:09 acrogenesis

Lib tzdata got bumped to fix this issue (https://github.com/lau/tzdata/releases/tag/v1.1.2)

See issue https://github.com/lau/tzdata/issues/143

jschaeff avatar Sep 10 '24 08:09 jschaeff