-
Notifications
You must be signed in to change notification settings - Fork 119
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
Enable _dev/deploy for data streams #228
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
|
I think this PR depends on elastic/package-spec#111? I will review this PR once elastic/package-spec#111 is reviewed and merged. |
I updated the package-spec in this branch. |
logger.Errorf("can't find _dev/deploy directory") | ||
return nil, ErrNotFound | ||
} | ||
fmt.Println(devDeployPath) |
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.
Should be removed?
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.
Fixed, thanks!
if err == nil { | ||
return packageDevDeployPath, nil | ||
} else if !os.IsNotExist(err) { | ||
return "", errors.Wrapf(err, "stat failed (path: %s)", packageDevDeployPath) |
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.
Both the errors (the one and the one above for the data stream) are very similar. Can you differentiate them a bit by saying that one failed for the data stream and one for the package?
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 path argument would be different, but I extended the error message to include also some context.
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.
LGTM.
Issue: #89
This PR enables custom
_dev/deploy
for data stream. It will be used by the future AWS service deployer.