Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Conversation

@gibix
Copy link
Contributor

@gibix gibix commented May 15, 2018

  • Updated copyright
  • Updated cargo to 0.27 with apis (dropped call to call_main_without_stdin) and new cargo's apis
  • Add quicli to manage cli interafce

gibix added 7 commits May 15, 2018 09:47
Signed-off-by: gibix <[email protected]>
Updated cargo to 0.27 with apis
Add quicli to manage cli interafce

Signed-off-by: gibix <[email protected]>
Signed-off-by: gibix <[email protected]>
Signed-off-by: gibix <[email protected]>
Signed-off-by: gibix <[email protected]>
@gibix gibix changed the title Misc upgrade misc changes May 15, 2018
Copy link
Owner

@cardoe cardoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the updates look good. Need a few small changes. I'll likely cherry-pick in some commits and let you update from there.

- nightly
- beta
- stable
- 1.17.0 # minimum supported version (due to unicode-bidi breakage)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now 1.17 is nightly

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. That's a stable release.

Cargo.toml Outdated
[package]
name = "cargo-ebuild"
version = "0.1.6-pre"
version = "0.1.7"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use cargo-release so just leave this be.

Cargo.toml Outdated
[badges]
travis-ci = { repository = "cardoe/cargo-ebuild" }
[badges.travis-ci]
repository = "cardoe/cargo-bitbake"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be right. I think I have an idea where you copied this from... ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

src/main.rs Outdated
.unwrap_or_else(|| String::from(package.name()));
let desc = metadata.description.as_ref().cloned().unwrap();
// TODO: now package.name is InternedString
// .unwrap_or_else(|| String::from(package.name()));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we'll need to resolve this prior to merge.

src/main.rs Outdated
.create(true)
.truncate(true)
.open(&ebuild_path)
.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't want this to panic when you failed to open the file. Returning an error saying it couldn't create the file would be nicer.

src/main.rs Outdated
crates = crates.join(""),
cargo_ebuild_ver = env!("CARGO_PKG_VERSION"),
this_year = 1900 + time::now().tm_year,
).expect("Error during ebuild file writing");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again this is going to panic instead of returning a nice error to the user.

@gibix
Copy link
Contributor Author

gibix commented May 16, 2018

with the last two commit there is a bit of refactoring and better error handling

gibix added 6 commits May 17, 2018 02:20
Signed-off-by: gibix <[email protected]>
better errors with failure
better cli
support for env debut
small fix

Signed-off-by: gibix <[email protected]>
Signed-off-by: gibix <[email protected]>
@gibix
Copy link
Contributor Author

gibix commented May 17, 2018

  • add basic git crates support
  • better errors with failure
  • better cli
  • support for env debug
  • small fix

@gibix
Copy link
Contributor Author

gibix commented May 18, 2018

@cardoe nothing will never compile for 1.17. I understand the broken unicode-bidi release but why we need an expicit test on 1.17?

Copy link
Owner

@cardoe cardoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So some of the comment messages are a bit wonky. I think we need to work on cleaning up the history a bit. If you need some help with this ping me on IRC.

e.g a subject of "Update copyright" does the update to cargo 0.27 and then there are commits later on that revert part of those changes that should be squashed together.

@gibix
Copy link
Contributor Author

gibix commented May 22, 2018

This is a single, quite big, refactor change. Me can squash it with a better message and changelog. Something has been rewritten/reverted.

This was referenced May 29, 2018
@gibix gibix closed this Jun 28, 2018
@gibix gibix deleted the misc-upgrade branch June 28, 2018 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants