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

Cannot locate Artifacts.toml #1060

Open
cossio opened this issue Nov 22, 2022 · 1 comment
Open

Cannot locate Artifacts.toml #1060

cossio opened this issue Nov 22, 2022 · 1 comment

Comments

@cossio
Copy link

cossio commented Nov 22, 2022

I'm running a Julia notebook, in a directory containing Project.toml and Artifact.toml. Evaluating Base.active_project() from within the notebook, confirms that the active environment is the Project.toml in the directory. However trying to load an artifact fails:

LoadError: Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact '' in 'Main'

So it fails to locate Artifacts.toml. Is there a way to fix this?

@pat-alt
Copy link

pat-alt commented Dec 22, 2022

I've encountered the same issue today. This works for me (inside a notebook):

using LazyArtifacts
artifact_toml = LazyArtifacts.find_artifacts_toml(".")
_hash = artifact_hash("my_artifact_name", artifact_toml)
artifact_path(_hash)

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

2 participants