-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the deprecation of delegates
This commit improves the deprecation of delegates: the deprecation warnings in the docs now come after the corresponding concept has been introduced; at important places, the new workflow gets explained after the deprecation warning; functions that were moved to the deprecation module have been moved back to where they were; the deprecation module now has a more general name in order to also deprecate other things there.
- Loading branch information
Showing
7 changed files
with
92 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module Delegates = struct | ||
let new_workflow = | ||
"You should write scripts invoking dune-release instead. Note that if you \ | ||
require some values that used to be passed by dune-release to your \ | ||
delegate you can obtain them with the `dune-release delegate-info` \ | ||
command added in 1.4.0." | ||
|
||
let warning = | ||
"dune-release delegates are deprecated. They will be removed in version \ | ||
2.0.0. " | ||
|
||
let artefacts_warning = | ||
"$(b,Warning:) publishing alternative artefacts is deprecated. It will be \ | ||
disabled in version 2.0.0.\n" | ||
|
||
let env_var_warning = | ||
"$(b,Warning:) this environment variable is deprecated. It will be removed \ | ||
in version 2.0.0." | ||
|
||
let warning_usage : ('a -> 'b, Format.formatter, unit, unit) format4 = | ||
"Warning: You are using delegates. The use of delegates is deprecated. It \ | ||
will be removed in version 2.0.0. %s" | ||
|
||
let warning_usage_alt_artefacts : | ||
('a -> 'b, Format.formatter, unit, unit) format4 = | ||
"Warning: You are using alternative artefacts. The use of alternative \ | ||
artefacts is deprecated. It will be removed in version 2.0.0. %s" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Delegates : sig | ||
val new_workflow : string | ||
(** Describes the new workflow to embed dune-release into customized release | ||
scripts. *) | ||
|
||
val warning : string | ||
(** Informs that the concept of delegate is deprecated. *) | ||
|
||
val artefacts_warning : string | ||
(** Same as [warning], but for alternative artefacts instead of delegates. *) | ||
|
||
val env_var_warning : string | ||
(** Same as [warning], but for the environment variable DUNE_RELEASE_DELEGATE | ||
instead of delegates themselves. *) | ||
|
||
val warning_usage : (string -> unit, Format.formatter, unit, unit) format4 | ||
(** Informs that the user is using delegates and that those a deprecated. *) | ||
|
||
val warning_usage_alt_artefacts : | ||
(string -> unit, Format.formatter, unit, unit) format4 | ||
(** Same as [warning_usage], but for alternative artefacts instead of | ||
delegates. *) | ||
end |
This file was deleted.
Oops, something went wrong.