Skip to content

Commit f2cdd51

Browse files
author
Jeremy T
committed
Merge branch 'jrm/bump' into 'master'
chore(ci): bump gitlab-ci-files See merge request TankerHQ/sdk-rust!42
2 parents 4a5fbaa + c3544b8 commit f2cdd51

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include:
22
project: TankerHQ/gitlab-ci-files
33
file: /rust.yml
4-
ref: ecfaa4031b36380595405ca7078f73daf08c6b1b
4+
ref: 874483a45e99037b888688c0c3d0fb6a186da6b0
55

66
check/native-from-sources/linux:
77
extends:
@@ -117,11 +117,3 @@ deploy:
117117
release:
118118
description: sdk-rust v$SDK_RUST_RELEASE_VERSION
119119
tag_name: v$SDK_RUST_RELEASE_VERSION
120-
121-
mirror:
122-
extends:
123-
- .deploy
124-
- .tags/linux
125-
- .rules/mirror
126-
script:
127-
- poetry run python run-ci.py mirror

run-ci.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def main() -> None:
297297
deploy_parser = subparsers.add_parser("deploy")
298298
deploy_parser.add_argument("--version", required=True)
299299
deploy_parser.add_argument("--registry", required=True)
300-
subparsers.add_parser("mirror")
301300

302301
args = parser.parse_args()
303302
if args.home_isolation:
@@ -328,8 +327,6 @@ def main() -> None:
328327
pipeline_id=args.pipeline_id,
329328
job_name=args.job_name,
330329
)
331-
elif args.command == "mirror":
332-
tankerci.git.mirror(github_url="[email protected]:TankerHQ/sdk-rust")
333330
else:
334331
parser.print_help()
335332
sys.exit(1)

src/ctanker.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub async fn create(options: Options) -> Result<CTankerPtr, Error> {
9898
.unwrap_or_else(|| CString::new(RUST_SDK_TYPE).unwrap());
9999
let sdk_version = CString::new(RUST_SDK_VERSION).unwrap();
100100
let coptions = tanker_options {
101-
version: 2,
101+
version: 3,
102102
app_id: options.app_id.as_ptr(),
103103
url: options
104104
.url
@@ -108,6 +108,9 @@ pub async fn create(options: Options) -> Result<CTankerPtr, Error> {
108108
writable_path: options.writable_path.as_ptr(),
109109
sdk_type: sdk_type.as_ptr(),
110110
sdk_version: sdk_version.as_ptr(),
111+
http_send_request: None,
112+
http_cancel_request: None,
113+
http_data: std::ptr::null_mut(),
111114
};
112115

113116
let fut = unsafe { CFuture::new(tanker_create(&coptions)) };

tests/tanker_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async fn has_correct_device_list() -> Result<(), Error> {
7171

7272
let list = tanker.device_list().await?;
7373
assert_eq!(list.len(), 1);
74-
assert_eq!(list[0].revoked, false);
74+
assert!(!list[0].revoked);
7575
assert_eq!(list[0].id, tanker.device_id().unwrap());
7676

7777
tanker.stop().await

0 commit comments

Comments
 (0)