Giter VIP home page Giter VIP logo

Comments (4)

aasim avatar aasim commented on May 18, 2024

We create the _manifest directory automatically. You don't have to specify the _manifest directory yourself. You can just specify the directory where you want the SBOM to be stored in that parameter, so in this case the net6.0 directory.

from sbom-tool.

rgl avatar rgl commented on May 18, 2024

I was just trying to say that from a first-user perspective, the creation of the _manifest directory is somewhat unexpected (actually, the creation of any directory is unexpected to me). Because the argument name kinda leads one to assume that the value we set will be the final directory, and the manifest would be placed immediately there; but instead, we find the actual manifests in a two-level depth directory.

from sbom-tool.

MiYanni avatar MiYanni commented on May 18, 2024

@aasim This is the exact same issue I mentioned from here in that email thread: https://github.com/microsoft/dropvalidator/issues/498

I'm telling ya, the description of that parameter is extremely misleading. It really shouldn't be generating a _manifest directory, and wasn't doing this prior to the changes in June. I 100% agree with @rgl here that the documentation needs updated if this is intended.

Edit: Here's the code that is doing this action:

private string EnsurePathEndsWithManifestFolderForGenerate(string value, ManifestToolActions manifestToolAction)
{
if (manifestToolAction == ManifestToolActions.Generate)
{
// For generate action, add the _manifest folder at the end of the path
return fileSystemUtils.JoinPaths(value, Constants.ManifestFolder);
}
return value;
}

The code using this is right above it:

private ConfigurationSetting<string> GetManifestDirPath(ConfigurationSetting<string> manifestDirPathConfig, string buildDropPath, ManifestToolActions manifestToolAction)
{
if (string.IsNullOrEmpty(manifestDirPathConfig?.Value))
{
return new ConfigurationSetting<string>
{
Value = fileSystemUtils.JoinPaths(buildDropPath, Constants.ManifestFolder),
Source = SettingSource.Default
};
}
return new ConfigurationSetting<string>
{
Value = EnsurePathEndsWithManifestFolderForGenerate(manifestDirPathConfig.Value, manifestToolAction),
Source = manifestDirPathConfig.Source
};
}

It is saying that if you provide a ManifestDirPath, then append _manifest to the path. But I can't understand why this is necessary?

from sbom-tool.

edgarrs avatar edgarrs commented on May 18, 2024

@aasim , should we just update the documentation?

from sbom-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.