File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 9
9
### Changed
10
10
11
11
- ` operator-rs ` ` 0.31.0 ` -> ` 0.34.0 ` ([ #219 ] ).
12
+ - Revert openshift settings ([ #233 ] )
13
+ - Support crate2nix in dev environments ([ #234 ] )
14
+
15
+ [ #219 ] : https://github.com/stackabletech/airflow-operator/pull/219
16
+ [ #233 ] : https://github.com/stackabletech/spark-k8s-operator/pull/233
17
+ [ #234 ] : https://github.com/stackabletech/spark-k8s-operator/pull/234
18
+
19
+ ## [ 23.1.0] - 2023-01-23
20
+
21
+ ### Changed
22
+
12
23
- Specified security context settings needed for OpenShift ([ #222 ] ).
13
24
- Fixed template parsing for OpenShift tests ([ #222 ] ).
14
25
- Revert openshift settings ([ #233 ] )
Original file line number Diff line number Diff line change
1
+ use std:: path:: PathBuf ;
2
+
1
3
fn main ( ) {
2
- built:: write_built_file ( ) . expect ( "Failed to acquire build-time information" ) ;
4
+ let out_dir = PathBuf :: from ( std:: env:: var ( "OUT_DIR" ) . expect ( "OUT_DIR is required" ) ) ;
5
+ built:: write_built_file_with_opts (
6
+ // built's env module depends on a whole bunch of variables that crate2nix doesn't provide
7
+ // so we grab the specific env variables that we care about out ourselves instead.
8
+ built:: Options :: default ( ) . set_env ( false ) ,
9
+ "Cargo.toml" . as_ref ( ) ,
10
+ & out_dir. join ( "built.rs" ) ,
11
+ )
12
+ . unwrap ( ) ;
3
13
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ mod util;
8
8
9
9
use crate :: airflow_controller:: AIRFLOW_CONTROLLER_NAME ;
10
10
11
- use clap:: Parser ;
11
+ use clap:: { crate_description , crate_version , Parser } ;
12
12
use futures:: StreamExt ;
13
13
use stackable_airflow_crd:: {
14
14
airflowdb:: { AirflowDB , AIRFLOW_DB_CONTROLLER_NAME } ,
@@ -34,10 +34,11 @@ use std::sync::Arc;
34
34
35
35
mod built_info {
36
36
include ! ( concat!( env!( "OUT_DIR" ) , "/built.rs" ) ) ;
37
+ pub const TARGET_PLATFORM : Option < & str > = option_env ! ( "TARGET" ) ;
37
38
}
38
39
39
40
#[ derive( Parser ) ]
40
- #[ clap( about = built_info :: PKG_DESCRIPTION , author = stackable_operator :: cli :: AUTHOR ) ]
41
+ #[ clap( about, author) ]
41
42
struct Opts {
42
43
#[ clap( subcommand) ]
43
44
cmd : Command ,
@@ -63,10 +64,10 @@ async fn main() -> anyhow::Result<()> {
63
64
tracing_target,
64
65
) ;
65
66
stackable_operator:: utils:: print_startup_string (
66
- built_info :: PKG_DESCRIPTION ,
67
- built_info :: PKG_VERSION ,
67
+ crate_description ! ( ) ,
68
+ crate_version ! ( ) ,
68
69
built_info:: GIT_VERSION ,
69
- built_info:: TARGET ,
70
+ built_info:: TARGET_PLATFORM . unwrap_or ( "unknown target" ) ,
70
71
built_info:: BUILT_TIME_UTC ,
71
72
built_info:: RUSTC_VERSION ,
72
73
) ;
You can’t perform that action at this time.
0 commit comments