-
Notifications
You must be signed in to change notification settings - Fork 132
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
Remove check for the dependencies tags to be in package-sets, but let Bower complain about it #303
Conversation
… Bower complain about it
Just a couple of thoughts:
Right now this generates the broken dependency entry:
but it could generate the valid entry:
This might not be useful for libraries (which perhaps should not normally depend on out-of-package set versions?) but supporting this means that We could check each package in the package set to see if the package in Bower with the same name is pointing to the same Git repo (via |
Yeah, it looks like we could prevent this (obviously broken) situation by doing a On the other hand if there is such a package mismatch most likely the published package is not going to compile and the user will realise and fix it immediately..
Actually this looks like the right fix for this PR: we should do a This allows us to also work with commit hashes (which I'm fine supporting): if the Examples: $ bower info purescript-simple-json#7.0.0
{
name: 'purescript-simple-json',
license: 'MIT',
repository: {
type: 'git',
url: 'git://github.com/justinwoo/purescript-simple-json.git'
},
ignore: [
'**/.*',
'node_modules',
'bower_components',
'output'
],
dependencies: {
'purescript-prelude': '^4.1.1',
'purescript-typelevel-prelude': '^5.0.0',
'purescript-record': '^2.0.1',
'purescript-variant': '^6.0.1',
'purescript-nullable': '^4.1.1',
'purescript-foreign-object': '^2.0.3',
'purescript-globals': '^4.0.0',
'purescript-foreign': '^5.0.0',
'purescript-exceptions': '^4.0.0',
'purescript-arrays': '^5.3.0'
},
devDependencies: {
'purescript-assert': '^4.1.0',
'purescript-generics-rep': '^6.1.1'
},
homepage: 'https://github.com/justinwoo/purescript-simple-json',
version: '7.0.0'
} $ bower info purescript-simple-json#d6c4163f6ad65be97b148ebf86c900cb821da5a8
{
name: 'purescript-simple-json',
license: 'MIT',
repository: {
type: 'git',
url: 'git://github.com/justinwoo/purescript-simple-json.git'
},
ignore: [
'**/.*',
'node_modules',
'bower_components',
'output'
],
dependencies: {
'purescript-prelude': '^4.1.1',
'purescript-typelevel-prelude': '^5.0.0',
'purescript-record': '^2.0.1',
'purescript-variant': '^6.0.1',
'purescript-nullable': '^4.1.1',
'purescript-foreign-object': '^2.0.3',
'purescript-globals': '^4.0.0',
'purescript-foreign': '^5.0.0',
'purescript-exceptions': '^4.0.0',
'purescript-arrays': '^5.3.0'
},
devDependencies: {
'purescript-assert': '^4.1.0',
'purescript-generics-rep': '^6.1.1'
},
homepage: 'https://github.com/justinwoo/purescript-simple-json'
} |
Sounds fine to me. I can implement this if you would like? |
@Dretch that would be great thanks! |
…#version style bower dependency.
@Dretch I'm going to close this PR, could you open a new one from this branch? (so that the squashed commit is rightly attributed to you) |
As we figured yesterday in #289 (comment),
bower install
would fail anyways if this check would fail, but we remove the limitation that all dependencies of a package must be in the official package set.cc @hdgarrood @Dretch