diff --git a/LICENSE b/LICENSE index 694d072..a1486d4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2017-2018 Chris de Graaf, Invenia Technical Computing Corporation +Copyright (c) 2017-2019 Chris de Graaf, Invenia Technical Computing Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/generate.jl b/src/generate.jl index 6de6dec..856fb65 100644 --- a/src/generate.jl +++ b/src/generate.jl @@ -18,6 +18,11 @@ function generate( # Create the directory with some boilerplate inside. Pkg.generate(pkg_dir) + # Replace the UUID with something that's compatible with METADATA. + project = joinpath(pkg_dir, "Project.toml") + uuid = string(Pkg.METADATA_compatible_uuid(pkg)) + write(project, replace(read(project, String), r"uuid = .*" => "uuid = \"$uuid\"")) + if git # Initialize the repo. repo = LibGit2.init(pkg_dir)