这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rchande
Copy link

@rchande rchande commented Jun 6, 2019

No description provided.

var package = new Package2(descriptor.Name, new FileSystemDirectoryAccessor(wasmAsset.DirectoryAccessor.GetFullyQualifiedRoot().Parent));
package.Add(wasmAsset);
return package;
var package = new Package2(descriptor.Name, new FileSystemDirectoryAccessor(buildAsset.DirectoryAccessor.GetFullyQualifiedRoot().Parent));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new FileSystemDirectoryAccessor(buildAsset.DirectoryAccessor.GetFullyQualifiedRoot().Parent) [](start = 60, length = 92)

Moving to a parent directory from the asset seems like a can of worms that I feel breaks the abstraction.

We have a method, DirectoryAccessor.GetDirectoryAccessorForRelativePath, which I feel we should be using here. WebAssemblyAssetFinder should take an IDirectoryAccessor in its constructor and build one accessor from another so when we test it via the in-memory implementation, it won't break out into a file-based implementation.

@rchande rchande merged commit 3fedb8f into dotnet:master Jun 10, 2019
@rchande rchande deleted the dev/rchande/wasm-package-intgestion branch June 10, 2019 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants