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

Could not find project file for dev'ed package #1648

Closed
dawbarton opened this issue Jan 30, 2020 · 3 comments
Closed

Could not find project file for dev'ed package #1648

dawbarton opened this issue Jan 30, 2020 · 3 comments

Comments

@dawbarton
Copy link

I've just been trying out Julia 1.4.0-RC1 and noticed that I am unable to dev my own registered packages.

With a clean environment on Julia 1.3.1

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.1 (2019-12-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(v1.3) pkg> st
    Status `~/.julia/environments/v1.3/Project.toml`
  (empty environment)

(v1.3) pkg> instantiate
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...

(v1.3) pkg> dev BarycentricInterpolation
  Updating git-repo `https://github.com/dawbarton/BarycentricInterpolation.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.3/Project.toml`
  [9eb6a62d] + BarycentricInterpolation v0.1.2+ [`~/.julia/dev/BarycentricInterpolation`]
  Updating `~/.julia/environments/v1.3/Manifest.toml`
  [9eb6a62d] + BarycentricInterpolation v0.1.2+ [`~/.julia/dev/BarycentricInterpolation`]
  [2a0f44e3] + Base64 
  [8ba89e20] + Distributed 
  [b77e0a4c] + InteractiveUtils 
  [8f399da3] + Libdl 
  [37e2e46d] + LinearAlgebra 
  [56ddb016] + Logging 
  [d6f4376e] + Markdown 
  [9a3f8284] + Random 
  [9e88b42a] + Serialization 
  [6462fe0b] + Sockets 
  [8dfed614] + Test 

On Julia 1.4.0-RC1 I get

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0-rc1.0 (2020-01-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  (empty environment)

(@v1.4) pkg> instantiate
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Updating `~/.julia/environments/v1.4/Project.toml`
 [no changes]
   Updating `~/.julia/environments/v1.4/Manifest.toml`
 [no changes]

(@v1.4) pkg> dev BarycentricInterpolation
ERROR: could not find project file in package at nothing

However, I am able to dev some other packages. Is this an intentional change?

@dawbarton
Copy link
Author

BTW: this is on Linux.

@00vareladavid
Copy link
Contributor

Yes, you need a project file.

Something as simple as this will work:

name = "BarycentricInterpolation"                                                                                  
uuid = "7781f4b9-0ba3-4b3e-a982-d971b817e3a7"                                                                      
version = "0.1.0"                                                                                                  

There are full instructions on how to transfer from REQUIRE to Project.toml: https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml

@dawbarton
Copy link
Author

Ah, of course. I'd forgotten that this package was done before project files were a thing.

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