Skip to content

Commit d641fbd

Browse files
authored
Merge pull request #8 from snyk/fix/update-analyzer-to-collect-rpm-full-versions
fix: update analyzer to collect full rpm versions
2 parents 57c54b0 + 38da79d commit d641fbd

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ function getMetaData() {
4141
}
4242

4343
function getDependencies(analyzerBinaryPath, targetImage) {
44-
console.log(`analyzing ${targetImage} Docker image`);
4544
return subProcess.execute(
4645
analyzerBinaryPath,
4746
buildArgs(targetImage)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1414
},
1515
"snyk-docker-analyzer": {
16-
"version": "1.0.5"
16+
"version": "1.0.6"
1717
},
1818
"author": "snyk.io",
1919
"license": "Apache-2.0",

test/manual.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
var plugin = require('../lib');
22

33
function main() {
4-
var targetFile = process.argv[2];
4+
var targetImage = process.argv[2];
55

6-
plugin.inspect('.', targetFile).then(function (result) {
6+
plugin.inspect(targetImage).then(function (result) {
77
console.log(JSON.stringify(result, null, 2));
88
}).catch(function (error) {
99
console.log('Error:', error.stack);

test/system.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,26 +197,26 @@ test('inspect centos', function (t) {
197197
t.match(deps, {
198198
'openssl-libs': {
199199
name: 'openssl-libs',
200-
version: '1.0.2k',
200+
version: '1:1.0.2k-8.el7',
201201
from: [
202202
imgName + '@' + imgTag,
203-
203+
'openssl-libs@1:1.0.2k-8.el7',
204204
],
205205
},
206206
passwd: {
207207
name: 'passwd',
208-
version: '0.79',
208+
version: '0.79-4.el7',
209209
},
210210
systemd: {
211211
name: 'systemd',
212-
version: '219',
212+
version: '219-42.el7',
213213
},
214214
dracut: {
215215
name: 'dracut',
216-
version: '033', // TODO: what is this weird version
216+
version: '033-502.el7', // TODO: make sure we handle this well
217217
},
218218
iputils: {
219-
version: '20160308',
219+
version: '20160308-10.el7',
220220
},
221221
}, 'deps');
222222
});

0 commit comments

Comments
 (0)