Skip to content

Version refactor fix#321

Merged
DanielVoogsgerd merged 4 commits into
mainfrom
version-refactor-fix
Jan 13, 2026
Merged

Version refactor fix#321
DanielVoogsgerd merged 4 commits into
mainfrom
version-refactor-fix

Conversation

@DanielVoogsgerd

Copy link
Copy Markdown
Collaborator

Add various fixes for the version refactor PR

Switching to temp files introduced a regression where the tempfile was
dropped in a replacement on the temp path, causing the temp path to be
dropped prematurely.
Comment thread brane-cli/src/version.rs
// Use reqwest for the API call
debug!(" > Querying...");
let mut url: String = info.api.to_string();
let mut url: String = format!("http://{}", info.api);

Check warning

Code scanning / devskim

An HTTP-based URL without TLS was detected. Warning

Insecure URL
@codecov

codecov Bot commented Jan 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
brane-ctl/src/lifetime.rs 0.00% 5 Missing ⚠️
brane-cli/src/version.rs 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

DanielVoogsgerd and others added 3 commits January 13, 2026 13:56
Brane api responds with a version prefixed by a v. semver does not parse
this v, so we have to strip it.
Think the problem is that the history feature was missing and rustyline,
for some obscene reason, decided to add stubs instead of missing
functions. Or it's that it works after two tries. Hard to say.
@DanielVoogsgerd DanielVoogsgerd merged commit 7175fba into main Jan 13, 2026
12 checks passed
@DanielVoogsgerd DanielVoogsgerd deleted the version-refactor-fix branch January 13, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants