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

[BUG] Self-hosted macOS builds only work once (?) due to permission errors for Julia <= 1.3 #105

Open
SaschaMann opened this issue May 23, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@SaschaMann
Copy link
Member

SaschaMann commented May 23, 2022

This is mainly a placeholder/reminder issue for now.

@SaschaMann SaschaMann added the bug Something isn't working label May 23, 2022
@SaschaMann SaschaMann self-assigned this May 23, 2022
@DilumAluthge DilumAluthge pinned this issue Jun 25, 2022
@DilumAluthge
Copy link
Member

I'm also running into this.

Instead of using the .dmg files, can we use the .tar.gz files? Would that eliminate the permission errors?

@SaschaMann
Copy link
Member Author

Instead of using the .dmg files, can we use the .tar.gz files? Would that eliminate the permission errors?

Last time I checked they were only available for recent Julia versions unfortunately. Otherwise I'd definitely prefer them.

@DilumAluthge
Copy link
Member

If I recall correctly, @staticfloat went through and uploaded macOS tarballs for all non-prerelease Julia versions >= 1.0.0. The motivation for doing so is that juliaup only supports the tarballs (it doesn't support the DMGs).

@DilumAluthge
Copy link
Member

DilumAluthge commented Jul 28, 2022

For this action, we could do either of the following:

  1. Switch to using tarballs unconditionally.
  2. Check if the tarball is available, and if so use that; otherwise fall back to the DMG.

@SaschaMann
Copy link
Member Author

If I recall correctly, @staticfloat went through and uploaded macOS tarballs for all non-prerelease Julia versions >= 1.0.0. The motivation for doing so is that juliaup only supports the tarballs (it doesn't support the DMGs).

If that's the case, let's swap to tarballs. Way less hassle and confusion than dealing with dmg files.

@DilumAluthge
Copy link
Member

I can confirm that using tarballs (#117) fixes this issue on self-hosted macOS runners.

@SaschaMann SaschaMann changed the title [BUG] Self-hosted macOS builds only work once (?) due to permission errors [BUG] Self-hosted macOS builds only work once (?) due to permission errors for Julia <= 1.3 Aug 10, 2022
@ViralBShah ViralBShah reopened this Nov 21, 2023
@IanButterworth
Copy link
Member

I suspect the issue with this is because setup-julia uses the toolcache, so the .dmg file is cached, and each time julia is installed it is mounted then contents copied to install dir i.e. as seen in
https://github.com/julia-actions/setup-julia/pull/117/files

So I think this issue is specific to the toolcache reusing the .dmg.

(i.e. because this came up on slack in the context of juliaup moving to .dmg's, juliaup wouldn't be reusing the .dmg so shouldn't hit this permissions issue)

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

No branches or pull requests

4 participants