Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Expose xtask as a binary entry and streamline "target/architecture" input #78

Closed
wants to merge 1 commit into from

Conversation

martinjlowm
Copy link
Member

@martinjlowm martinjlowm commented Jan 5, 2023

Moves our xtask implementation from cloud-services and cloud-ingress such that we can use it EVERYWHERE! 🥳

rust-lang/cargo#1982 🤔

@martinjlowm martinjlowm changed the title Expose xtask as a binary entry and streamline "target" input Expose xtask as a binary entry and streamline "target/architecture" input Jan 5, 2023
use anyhow::Result;
use xshell::pushd;

fn main() -> Result<()> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would rename the file to src/xtask.rs.
Then you need to add a [bin] target to cargo.toml

}

fn project_root() -> PathBuf {
Path::new(
Copy link
Collaborator

Choose a reason for hiding this comment

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

We cannot assume that xtask is invoked via a cargo alias anymore, so perhaps it's better to require the user to take the cargo workspace path in?

@simonvandel
Copy link
Collaborator

With our use of Nix, and a potential mono-repo-fication in-progress, I think this PR is redundant.

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