Trying to create my own package; one dependency asks to be installed manually?

Hi all,

I’m hoping to finalize a package for deployment soon, but when I try to install it from github, everything works except for the Graphs.jl dependency.

Weirdly enough, it does install Graphs, but when I try to load my package, it complains that Graphs isn’t installed (specifically that the data struct SimpleGraph isn’t defined), until I install Graphs manually. I do have a few “using” statements in my various files, but it doesn’t behave the same way with the using Pipe @pipe statement.

In my module definition, I use Reexport to reexport all the dependencies to make sure they’re usable if necessary. Also, I use Distributed to try to make sure the files that are part of the module are available for parallelism on the end users’ machine without too fuss.

I’ve included my module definition below, if anyone can point me in the right direction here, I would seriously appreciate it!

module Package_Name (still private until PI says I can release it)

using Reexport
@reexport using Graphs, Distributed, StatsBase, LinearAlgebra , Random, Distributions #,StaticArrays
using Pipe: @pipe
# Write your package code here.
@everywhere include("pure_functions.jl")
@everywhere include("optimize.jl")
@everywhere include("actions.jl")

export main, starting_network, create_targets, normalize_am, assign_node_type
export action1, action2, action3, action4, action5, action6, action7, action8
export extract_matrix, generate_graph


What does your project.toml file look like?

Here’s the file, though it seems like the error just sort of vanished without any changes? Maybe it’s still there; I’ll have to do more testing, but I wiped my entire package environment from a new computer, and reinstalling everything worked, somewhat arbitrarily.

authors = ["contributors"] 
version = "1.0.0" [deps] 

Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" 
Compose = "a81c6b42-2e10-5240-aca2-a61377ecd94b" 
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" 
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" 
Fontconfig = "186bb1d3-e1f7-5a2c-a377-96d770f13627" 
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" 
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" 
Pipe = "b98c9c47-44ae-5843-9183-064241ee97a0" 
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" 
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" 
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" 

[compat] julia = "1.6" 

[extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets] test = ["Test"]