-
Notifications
You must be signed in to change notification settings - Fork 25
"Adding [email protected] package to registry via mason publish" #61
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
Conversation
can this failure be related to the lack of tag release on the package repo (see also #62 ) ? |
chplVersion = "1.28.0" | ||
license = "MIT" | ||
name = "ForwardModeAD" | ||
source = "[email protected]:lucaferranti/ForwardModeAD.git" |
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.
The error message
make[1]: Nothing to be done for 'install'.
package detected from git diff: Bricks/ForwardModeAD/0.1.0.toml
package path: Bricks/ForwardModeAD/0.1.0.toml.end
0.1.0.toml
Cloning into 'newPackage'...
Warning: Permanently added the ECDSA host key for IP address '192.30.255.112' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
./util/runMasonCI.bash: line 46: cd: newPackage: No such file or directory
maybe this should be specified as https link? (Edit: just tried let's see what happens)
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.
It might be it , because also the example in the readme uses https.
I think this file was automatically generated though, maybe this is something should be fixed in mason publish
?
ok my diagnosis was wrong, changing to https gives
|
is this right? |
I tried to reproduce the steps locally with the following simplified bash script #!/usr/bin/env bash
package=$(git diff --name-only HEAD HEAD~1)
end=".end"
path="$package$end"
cd "$(dirname "$path")" || exit 1
echo "package detected from git diff: ${package}"
echo "package path: ${path}"
FILE=$package
basename "$FILE"
f="$(basename -- "$FILE")"
source="$(grep source "$f" | cut -d= -f2)"
echo $source
fixed=$(echo "$source" | tr -d '"')
echo $fixed basically, I just print the value of
so the source seems indeed correct 🤔. Furthermore, manually doing I think this stack overflow question is relevant to understand the issue. If I read it correctly, there are two options
comments? |
A few questions
mason publish
? (see alsomason publish
did not create a tag #62 )X.Y.Z
, then it looks for a tagvX.Y.Z
from the given repository?mason publish
?