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

Apparent release packaging error for odin-ubuntu-amd64-dev-2024-03.zip #3257

Closed
jgaines opened this issue Mar 8, 2024 · 2 comments
Closed

Comments

@jgaines
Copy link

jgaines commented Mar 8, 2024

Context

The latest odin-ubuntu-amd64-dev-2024-03.zip release file appears to have been packaged wrong. The contents of the zip file are another zip file named dist.zip

I'm using mise (formerly rtx) which uses the asdf plugin to install Odin. The current dev-2024-03 version is not installable with mise or asdf because the packaging of this version doesn't match the expected directory structure.

❯ mise x odin@dev-2024-02 -- odin report
Where to find more information and get into contact when you encounter a bug:

	Website: https://odin-lang.org
	GitHub:  https://github.com/odin-lang/Odin/issues


Useful information to add to a bug report:

	Odin: dev-2024-02-nightly:539cec74
	OS:   Linux Mint 21.3, Linux 6.5.0-18-generic
	CPU:  Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz
	RAM:  64237 MiB

Expected Behavior

The prior release version zip file contained the correct internal structure:

❯ unzip -l odin-ubuntu-amd64-dev-2024-02.zip
Archive:  odin-ubuntu-amd64-dev-2024-02.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2024-02-01 16:42   base/
        0  2024-02-01 16:42   core/
        0  2024-02-01 16:42   examples/
109409232  2024-02-01 16:41   libLLVM-14.so.1
     1502  2024-02-01 16:41   LICENSE
  2666960  2024-02-01 16:41   odin
        0  2024-02-01 16:41   shared/
... lots more lines ...
    29427  2024-02-01 16:42   vendor/x11/xlib/xlib_types.odin
   687622  2024-02-01 16:41   vendor/zlib/libz.lib
     1001  2024-02-01 16:41   vendor/zlib/LICENSE
    11271  2024-02-01 16:41   vendor/zlib/zlib.odin
---------                     -------
225442769                     1158 files

Current Behavior

The latest release zip contains just a dist.zip file:

❯ unzip -l odin-ubuntu-amd64-dev-2024-03.zip
Archive:  odin-ubuntu-amd64-dev-2024-03.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
 69712986  2024-03-04 12:21   dist.zip
---------                     -------
 69712986                     1 file

Extracting the dist.zip appears as though it might have the correct file, but there's yet another layer of directory in the zip:

❯ unzip -l dist.zip | head
Archive:  dist.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2024-03-04 07:21   dist/
        0  2024-03-04 07:21   dist/vendor/
     6387  2024-03-04 07:21   dist/vendor/README.md
        0  2024-03-04 07:21   dist/vendor/miniaudio/
    60923  2024-03-04 07:21   dist/vendor/miniaudio/device_io_types.odin
        0  2024-03-04 07:21   dist/vendor/miniaudio/src/
      190  2024-03-04 07:21   dist/vendor/miniaudio/src/Makefile

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Failure Logs

Please include any relevant log snippets or files here.

@laytan
Copy link
Collaborator

laytan commented Mar 8, 2024

I agree the indirections aren't great.

The goal of this change was the release binary keeping executable permissions after downloading and unzipping it. See actions/upload-artifact#38

For some reason the artifact uploading action does not support this, so you need to zip the artifact yourself, and then we now see that the releases also zip it up again unfortunately.

I have already put in a PR to the asdf plugin to fix the issue (unzip again). jtakakura/asdf-odin#2

@laytan
Copy link
Collaborator

laytan commented Apr 2, 2024

I think this can be closed, there isn't anything to be done here anymore, the releases are just packaged a bit differently now, and the third-party automated things like setup-odin and asdf-odin have already been updated to handle it correctly.

@Kelimion Kelimion closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants