Skip to content

[wip] Resource split - #17769

Closed
paulrouget wants to merge 5 commits into
servo:masterfrom
paulrouget:resource_split
Closed

paulrouget wants to merge 5 commits into
servo:masterfrom
paulrouget:resource_split

Conversation

@paulrouget

@paulrouget paulrouget commented Jul 18, 2017 •

Copy link
Copy Markdown
Contributor

don't review yet

Splitting resources in 3 categories:

  • support/* for files that are not necessary for libservo (usually, for ports/ packaging)
  • tests/resources/ for files used for tests
  • resources/ for files necessary for libservo

This is necessary when one wants to embed Servo. We don't want to have to deal with useless files. And eventually, we will want to package these files within the libservo binary (see #15635).



This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @wafflespeanut: python/servo/testing_commands.py, python/servo/package_commands.py, python/servo/build_commands.py
  • @jgraham: tests/wpt/run.py

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 18, 2017
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@paulrouget
paulrouget force-pushed the resource_split branch 2 times, most recently from 0a78595 to 5fba71c Compare July 18, 2017 09:11
@jdm

jdm commented Jul 18, 2017

Copy link
Copy Markdown
Member
error[E0425]: cannot find function `resources_dir_path` in this scope

   --> /home/travis/build/servo/servo/tests/unit/net/fetch.rs:158:20

    |

158 |     let mut path = resources_dir_path().expect("Cannot find resource dir");

    |                    ^^^^^^^^^^^^^^^^^^ not found in this scope

    |

help: possible candidate is found in another module, you can import it into scope

    |

157 | fn test_fetch_file() use servo_config::resource_files::resources_dir_path;

    |

error[E0433]: failed to resolve. Use of undeclared type or module `std`

   --> /home/travis/build/servo/servo/tests/unit/net/fetch.rs:520:16

    |

520 |     let path = std::env::current_exe().unwrap().push("tests").push("resources");

    |                ^^^^^^^^^^^^^^^^^^^^^ Use of undeclared type or module `std`

error[E0425]: cannot find function `resources_dir_path` in this scope

   --> /home/travis/build/servo/servo/tests/unit/net/fetch.rs:533:19

    |

533 |     let ca_file = resources_dir_path().unwrap().join("self_signed_certificate_for_testing.crt");

    |                   ^^^^^^^^^^^^^^^^^^ not found in this scope

    |

help: possible candidate is found in another module, you can import it into scope

    |

514 | fn test_fetch_with_hsts() use servo_config::resource_files::resources_dir_path;

@paulrouget
paulrouget force-pushed the resource_split branch 2 times, most recently from 3f721f5 to a5f7af8 Compare July 19, 2017 09:31
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #17822) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Jul 21, 2017
@nox nox assigned jdm and unassigned nox Aug 8, 2017
@jdm jdm removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 8, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #17425) made this pull request unmergeable. Please resolve the merge conflicts.

@jdm

jdm commented Nov 15, 2017

Copy link
Copy Markdown
Member

Closing due to inactivity.

@jdm jdm closed this Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split the /resources/ in 3: resources for the libservo, resources for the binary, resources for testing.

5 participants