Skip to content
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

Bowerfile is not effective #219

Open
hopewise opened this issue Jan 11, 2022 · 0 comments
Open

Bowerfile is not effective #219

hopewise opened this issue Jan 11, 2022 · 0 comments

Comments

@hopewise
Copy link

I need to specify the git endpoint for a dependency, as:

# vendor/assets/bower_components/Bowerfile
asset "sb_admin", git: "https://github.com/BlackrockDigital_/startbootstrap-sb-admin-2.git#3.3.7+1"

however, when I run bundle exec rake bower:install CI=true the generated file seems not to use the endpoint above.

# vendor/assets/bower.json
{
  "name": "dsl-generated-dependencies",
  "dependencies": {
    "sb_admin": "git://github.com/BlackrockDigital/startbootstrap-sb-admin-2#3.3.7+1"
  },
  "resolutions": {
    "font-awesome": "~4.6.3"
  }
}

Do I miss something?
What I need is to read the repo using https instead of git://github.com/ to avoid this error:

bower sb_admin#3.3.7+1                        ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/BlackrockDigital/startbootstrap-sb-admin-2.git", exit code of #128 fatal: remote error:    The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

here is my bower.json

{
  "name": "boweradmin",
  "lib": {
    "name": "bowerrailsgeneratedlibassets",
    "dependencies": {}
  },
  "vendor": {
    "name": "bowerrailsgeneratedvendorassets",
    "dependencies": {
      "font-awesome": "~4.6.3",
      "sb_admin": "https://github.com/BlackrockDigital/startbootstrap-sb-admin-2.git"
    },
    "resolutions": {
      "font-awesome": "~4.6.3"
    }
  },
  "description": "",
  "main": "",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "vendor/assets/bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "moment-timezone": "^0.5.23",
    "moment": "^2.24.0",
    "datatables-responsive": "1.0.6",
    "bootstrap-social": "~4.8.0",
    "datatables-plugins": "~1.0.1",
    "datatables.net": "^1.10.19",
    "flot.tooltip": "~0.8.4",
    "flot": "~0.8.3",
    "eve-raphael": "0.5.0",
    "holderjs": "~2.4.1",
    "metisMenu": "~1.1.3",
    "mocha": "~1.17.1",
    "sb_admin": "https://github.com/BlackrockDigital/startbootstrap-sb-admin-2.git",
    "datatables.net-bs4": "^3.2.2",
    "datatables.net-buttons": "2.0.0",
    "datatables.net-buttons-dt": "^1.7.1",
    "startbootstrap-sb-admin-2": "^4.0.7"
  },
  "resolutions": {
    "datatables.net-buttons": ">=1.0.3"
  }
}

@hopewise hopewise changed the title Bowerfile is not affective Bowerfile is not effective Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant