-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix cd path when registering a new package (fix #43) #58
Conversation
done |
|
||
@testset "testing package registration" begin | ||
PkgDev.generate("GreatNewPackage", "MIT") | ||
PkgDev.register("GreatNewPackage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will need git credentials of some kind
I may need to set the global user and email settings for Linux. |
so does the config dict not apply to both METADATA commits and the new repo? it seems like that could be changed? |
@@ -20,6 +20,7 @@ end | |||
|
|||
temp_pkg_dir() do pkgdir | |||
|
|||
#= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed before merging, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
Sorry, I'm not sure what you mean. Each repository and METADATA read the global configuration set with the |
If no global setting of git, we need to pass some information about the committer to this call: Line 176 in e242d96
PkgDev.register , which is I'm not sure a good approach or not.
|
info("setting git global configuration") | ||
run(`git config --global user.name "Julia Test"`) | ||
run(`git config --global user.email test@julialang.org`) | ||
run(`git config --global github.user JuliaTest`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a better approach would be to create a temporary directory, and do withenv("HOME" => ...)
?
edit: or set HOME
to be inside of JULIA_PKGDIR
? is there a different git-specific config location environment variable we could use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running git config --local ...
inside a package repository may be better than modifying global configurations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LibGit2.config
?
This will fix #43.