-
Notifications
You must be signed in to change notification settings - Fork 24
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
CP-43777: Add xapi-expiry-alerts library #647
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
opam-version: "2.0" | ||
name: "xapi-expiry-alerts" | ||
version: "master" | ||
synopsis: "A library to send expiration-related alerts" | ||
description: """\ | ||
The interface of this library is 'alert', upon calling this API, any | ||
existing outdated messages will be removed first, and a new message | ||
will be created only if it does not exist in Xapi.Message records | ||
yet.""" | ||
maintainer: "xen-api@lists.xen.org" | ||
authors: "xen-api@lists.xen.org" | ||
homepage: "https://github.com/xapi-project/xen-api" | ||
bug-reports: "https://github.com/xapi-project/xen-api/issues" | ||
depends: [ | ||
"ocaml" | ||
"dune" {build & >= "1.4"} | ||
"xapi-client" | ||
"xapi-consts" | ||
"xapi-types" | ||
"xapi-stdext-date" | ||
] | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
dev-repo: "git+https://github.com/xapi-project/xen-api.git" | ||
url { | ||
src: "https://github.com/xapi-project/xen-api/archive/master.tar.gz" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ depends: [ | |
"xapi-cli-protocol" | ||
"xapi-consts" | ||
"xapi-datamodel" | ||
"xapi-expiry-alerts" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @psafont Thank you for helping to add these missing part! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, the main xapi binary is part of the xapi opam package. The certificate alert binary is also part of the xapi opam package: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, then for the xapi opam package, who will request it from the opam repo? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the opam repository is only used to test packages in github's CI and test install packages in the developers' machines. To change the binaries installed in Xenserver There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, thank you! |
||
"xapi-stdext-date" | ||
"xapi-stdext-pervasives" | ||
"xapi-stdext-std" | ||
|
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.
This URL is not recognised or supported by Git - try it.
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.
Sorry, I did not find related spec for the
dev-repo
field, seems it is a string for information purpose only?https://opam.ocaml.org/doc/Manual.html#File-hierarchies :
This URL is copied from other opam files:
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.
Use a URL that works with git. Maybe it worked in the past.
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 believe this an opam-specific uri, Python's PIP uses similar URIs to denote git repositories that have to be fetched using HTTPS
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 find a commit which added the "git+" to the
dev-repo
to use Opam 2.0:Maybe we need to add "git+" for those which missed the "git+" prefix? Like this one: