-
Notifications
You must be signed in to change notification settings - Fork 83
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
MMF-4124 Download CFamily analyzer on demand #689
base: master
Are you sure you want to change the base?
Conversation
6753381
to
b730d0e
Compare
8427df0
to
34efc72
Compare
34efc72
to
7a29948
Compare
@@ -33,7 +32,8 @@ export async function deployBuildInfo() { | |||
const response = await fetch(`${process.env.ARTIFACTORY_URL}/api/build`, { | |||
method: 'PUT', | |||
body, | |||
headers | |||
headers, | |||
duplex: 'half' |
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.
This new parameter was required by the move to the Node built-in fetch
|
||
const HTTP_BAD_REQUEST = 400; | ||
|
||
export async function downloadFile(fileUrl, destPath, useAuthentication=false) { |
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.
Extracted to a dedicated util module since both the JRE and O# download rely on it.
const fileReadStream = Readable.toWeb(createReadStream(`./${file}`)); | ||
const signature = await sign(fileReadStream, opts.privateKeyArmored, opts.passphrase); | ||
writeFileSync(`./${file}.asc`, signature.toString(), 'ascii'); |
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.
Required by the upgrade of the openpgp
library.
@@ -0,0 +1,64 @@ | |||
-----BEGIN PGP PUBLIC KEY BLOCK----- |
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.
This file could be downloaded from a trusted source at build time, but since it's static (and small) we can also copy it here.
@@ -31,6 +31,7 @@ const config = { | |||
vscode: 'commonjs vscode' | |||
}, | |||
resolve: { | |||
mainFields: ['browser', 'module', 'main'], |
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.
New recommendation from the VSCode bundling guide.
|
MMF-4124
MMF-4124