Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compensate for differences between cargo bin vs lib output names #58

Closed
thedodd opened this issue Sep 23, 2020 · 1 comment
Closed

Compensate for differences between cargo bin vs lib output names #58

thedodd opened this issue Sep 23, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@thedodd
Copy link
Member

thedodd commented Sep 23, 2020

A few things to consider here:

  • probably want to stick with the manual invocation of cargo, as we want to output any errors to the console exactly as one would see them in their shell normally.
  • need to account for the differences between bin and lib output names from cargo.
@thedodd thedodd added the bug Something isn't working label Sep 23, 2020
@thedodd thedodd self-assigned this Sep 23, 2020
@thedodd thedodd added this to the 0.5.[0-2] | Proxy System milestone Sep 23, 2020
@hobofan
Copy link

hobofan commented Sep 25, 2020

Not sure if that was already meant with this issue, but I ran into this when trying to move yew-react-example to trunk. The problem here was that the crate name contains dashes which are automatically converted to underscores in the target .wasm file name, which I guess is quite common.

Coupled with the sparse logging and the fact that the old lib.rs before converting it to main.rs had already produced a correctly named .wasm file that was being picked up instead of the new one made this a very annoying problem to debug, and one that I would expect many people that are converting existing projects to trunk to run into.

thedodd added a commit that referenced this issue Sep 28, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example.

Add snapshot tests over the yew example app.

closes #58
thedodd added a commit that referenced this issue Sep 28, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example.

Add snapshot tests over the yew example app.

closes #58
thedodd added a commit that referenced this issue Sep 28, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example.

Add snapshot tests over the yew example app.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
thedodd added a commit that referenced this issue Sep 30, 2020
This should allow for a much easier process of adding new pipelines and
assets to the mix. Functionality has been preserved. A few small bug
fixes have been factored in.

Add a Trunk, Yew, YBC (Bulma) example. This includes a minimal
Trunk.toml.

Add snapshot tests over the yew example app.

Added a pull request template, just to help folks remember to knock out
a few of the small tasks associated with getting PRs to land.

Broke apart the config.rs module into a directory of a few separate
modules under src/config. The file was getting fairly large and had
three distinct families of types.

Simplified the handling of errors in main. This handles returning proper
status codes and also prints out the chain of errors associated with the
error being logged.

The processing of Trunk.toml files has been updated to ensure that all
paths declared in the file will be treated as relative to the config
file itself (if the paths are indeed relative).

Introduced CI caching.

closes #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants