FuelLabs / FuelLabs/sway

Warn users if they create a package in a workspace without listing them as a member

Open
#4,451 4 comments 0 reactions 1 assignee Claimed by @khayss View on GitHub
enhancement forc forc-pkg good first issue may be rewarded ODHack13
Dominant language
Rust
Stars
61.4k
Forks
5.4k
Avg merge
3h 33m
Merged PRs (30d)
4

Description

cargo warns users with a warning if they create a package inside a workspace directory like the following:

```console
warning: compiling this new package may not work due to invalid workspace configuration

current package believes it's in a workspace when it's not:
current: /Users/kayagokalp/fuel/dev/sway/forc-error/Cargo.toml
workspace: /Users/kayagokalp/fuel/dev/sway/Cargo.toml
```

We might want to do something similar. In our case a child package wouldn't be "thinking" it's in a workspace but it is still pretty easy to forget listing a package in the workspace manifest file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.