Skip to content

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jul 15, 2024

What

Change contract build behavior when executed in the sub-directory of a workspace that contains a crate of that workspace. Make it build only that crate instead of the entire workspace.

Why

The current behavior is to build the entire workspace.

The behavior of cargo build is to build only the crate of the sub-directory.

This command is designed to immitate cargo build, and differences in behavior are surprising and unexpected.

This change is a breaking change, but it is fixing a bug.

Close #1450

@leighmcculloch leighmcculloch changed the title Fix contract build inside workspace crates contract build: fix behavior inside workspace crates Jul 15, 2024
@leighmcculloch leighmcculloch changed the title contract build: fix behavior inside workspace crates contract build: fix behavior when used in sub-directories of crates Jul 15, 2024
@leighmcculloch leighmcculloch changed the title contract build: fix behavior when used in sub-directories of crates contract build: fix when used in sub-directories of crates Jul 15, 2024
@leighmcculloch leighmcculloch marked this pull request as ready for review July 15, 2024 02:22
@leighmcculloch leighmcculloch requested a review from a team as a code owner July 15, 2024 02:22
@leighmcculloch leighmcculloch enabled auto-merge (squash) July 15, 2024 03:55
@leighmcculloch leighmcculloch requested a review from graydon July 15, 2024 20:49
@leighmcculloch leighmcculloch merged commit 60dbc37 into main Jul 15, 2024
@leighmcculloch leighmcculloch deleted the i1450 branch July 15, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

contract build: shouldn't build entire workspace when called within workspace sub-directory

3 participants