Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Fixup onefuzz-task dependencies - #3552

Merged
George Pollard (Porges) merged 3 commits into
mainfrom
fixup-onefuzz-task-layout
Oct 5, 2023
Merged

George Pollard (Porges) merged 3 commits into
mainfrom
fixup-onefuzz-task-layout

Conversation

@Porges

@Porges George Pollard (Porges) commented Oct 5, 2023

Copy link
Copy Markdown
Member

Both the bin and lib for onefuzz-task include the same modules, which means some code is being compiled twice, and this leads to confusing errors if you update the bin code and not the lib code (e.g. adding new modules or something similar).

Instead, make the bin code depend on the lib code.

Also remove extern crate and macro_use, which are an older way of doing things. Macros are simply imported now.

@Porges
George Pollard (Porges) marked this pull request as ready for review October 5, 2023 21:10
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Oct 5, 2023

Copy link
Copy Markdown

Codecov Report

Merging #3552 (3e85571) into main (003c9ac) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #3552   +/-   ##
=======================================
  Coverage   38.97%   38.97%           
=======================================
  Files         301      301           
  Lines       36848    36848           
=======================================
  Hits        14363    14363           
  Misses      22485    22485           
Files Coverage Δ
src/agent/onefuzz-task/src/check_for_update.rs 0.00% <ø> (ø)
src/agent/onefuzz-task/src/managed/cmd.rs 0.00% <0.00%> (ø)
src/agent/onefuzz-task/src/main.rs 0.00% <0.00%> (ø)

@Porges
George Pollard (Porges) merged commit 8d957ce into main Oct 5, 2023
@Porges
George Pollard (Porges) deleted the fixup-onefuzz-task-layout branch October 5, 2023 21:28
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.

4 participants