Skip to content

Commit

Permalink
Add a couple of precompilation statements
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored and staticfloat committed Jan 24, 2023
1 parent da1ccc1 commit 02edd8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Sandbox"
uuid = "9307e30f-c43e-9ca7-d17c-c2dc59df670d"
authors = ["Elliot Saba <[email protected]>"]
version = "1.5.0"
version = "1.5.1"

[deps]
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
Expand Down
7 changes: 7 additions & 0 deletions src/Sandbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,11 @@ end
# The multiarch rootfs is truly multiarch
multiarch_rootfs(;platform=nothing) = artifact"multiarch-rootfs"

# Precompilation section
let
f(exe) = run(exe, SandboxConfig(Dict("/" => "/")), `/bin/bash -c exit`)
precompile(select_executor, (Bool,))
precompile(with_executor, (typeof(f),))
end

end # module

2 comments on commit 02edd8a

@staticfloat
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/77732

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.5.1 -m "<description of version>" 02edd8ac6b3a9ecd8463f294fbb197e717268bd2
git push origin v1.5.1

Also, note the warning: Version 1.5.1 skips over 1.5.0
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.