-
Notifications
You must be signed in to change notification settings - Fork 14
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
[FEATURE] Sapui5MavenSnapshotResolver: Expose cacheMode parameter through all APIs #607
Conversation
…rough all APIs This allows consumers to control the cache behavior when using SNAPSHOT versions. Also, remove unused 'resolverConfig' option from ui5Framework
ee0358b
to
fafa114
Compare
lib/graph/graph.js
Outdated
@@ -93,14 +95,16 @@ export async function graphFromPackageDependencies({ | |||
* Configuration file to use for the root module instead the default ui5.yaml. Either a path relative to | |||
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used. | |||
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project | |||
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode] | |||
* Cache mode to use when consuming SNAPSHOT versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
lib/graph/graph.js
Outdated
@@ -143,14 +147,16 @@ export async function graphFromStaticFile({ | |||
* Configuration file to use for the root module instead the default ui5.yaml. Either a path relative to | |||
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used. | |||
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project | |||
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode] | |||
* Cache mode to use when consuming SNAPSHOT versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -177,7 +178,7 @@ test.serial("enrichProjectGraph: without framework configuration", async (t) => | |||
|
|||
test.serial("enrichProjectGraph SNAPSHOT", async (t) => { | |||
const {sinon, ui5Framework, utils, Sapui5MavenSnapshotResolverInstallStub} = t.context; | |||
process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT = "__url__"; | |||
process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT_URL = "__url__"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this even required within this test? I wonder why it didn't fail before, as the variable has been renamed already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Expose cache-mode API parameter via CLI. See also: SAP/ui5-project#607
Expose cache-mode API parameter via CLI. See also: SAP/ui5-project#607
Expose cache-mode API parameter via CLI. See also: SAP/ui5-project#607 --------- Co-authored-by: Günter Klatt <[email protected]>
This allows consumers to control the cache behavior when using
SNAPSHOT versions