Giter Site home page Giter Site logo

Comments (6)

max-ieremenko avatar max-ieremenko commented on June 15, 2024 1

It looks like an index.json file of one of the packages is corrupted.

For example, the expected content should be

{
  "License": {...},
  "UsedBy": [...],
  "Licenses": [...]
}

but for some reason (e.g. manual editing) according to the exception details the content looks something like this

[
{
  "License": {...},
  "UsedBy": [...],
  "Licenses": [...]
}
]

To resolve the issue, the contents of index.json should be fixed manually, or alternatively, remove the package folder with index.json from the repository and run the update again.

Especially for this ticket I release version 3.4.1, where the exception should contain the full package name with an invalid index.json

Failed to deserialize contents of index.json of package npmjs.com/bootstrap/4.6.1. System.InvalidOperationException: Failed to deserialize contents of index.json of package npmjs.com/bootstrap/4.6.1. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'ThirdPartyLibraries.Repository.Template.LibraryIndexJson' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.

from thirdpartylibraries.

stunney avatar stunney commented on June 15, 2024

This error occurs after a large output of
Valid reference **** from *****
and then a few
The nuget.org ******* VVVV has been completely removed from the repository

from thirdpartylibraries.

stunney avatar stunney commented on June 15, 2024

Turns out it was:

Failed to deserialize contents of index.json of package npmjs.com/babel-jest/22.4.4/node_modules/spdx-exceptions.

the index.json files I see are just a strict array of package names, no other meta is mentioned in them for this specific library

example

[
  "389-exception",
  "Autoconf-exception-2.0",
  "Autoconf-exception-3.0",
  "Bison-exception-2.2",
  "Bootloader-exception",
  "Classpath-exception-2.0",
  "CLISP-exception-2.0",
  "DigiRule-FOSS-exception",
  "eCos-exception-2.0",
  "Fawkes-Runtime-exception",
  "FLTK-exception",
  "Font-exception-2.0",
  "freertos-exception-2.0",
  "GCC-exception-2.0",
  "GCC-exception-3.1",
  "gnu-javamail-exception",
  "GPL-3.0-linking-exception",
  "GPL-3.0-linking-source-exception",
  "GPL-CC-1.0",
  "i2p-gpl-java-exception",
  "Libtool-exception",
  "Linux-syscall-note",
  "LLVM-exception",
  "LZMA-exception",
  "mif-exception",
  "Nokia-Qt-exception-1.1",
  "OCaml-LGPL-linking-exception",
  "OCCT-exception-1.0",
  "OpenJDK-assembly-exception-1.0",
  "openvpn-openssl-exception",
  "PS-or-PDF-font-exception-20170817",
  "Qt-GPL-exception-1.0",
  "Qt-LGPL-exception-1.1",
  "Qwt-exception-1.0",
  "Swift-exception",
  "u-boot-exception-2.0",
  "Universal-FOSS-exception-1.0",
  "WxWindows-exception-3.1"
]

from thirdpartylibraries.

max-ieremenko avatar max-ieremenko commented on June 15, 2024

npmjs.com/babel-jest/22.4.4/node_modules/spdx-exceptions

node_modules in the path looks strange. ThirdPartyLibraries can only create package folders in their repository, such as npmjs.com/babel-jest/22.4.4.

Where did the sub-folder node_modules/spdx-exceptions come from?

from thirdpartylibraries.

stunney avatar stunney commented on June 15, 2024

npm install && npm dedupe command is a likely culprit

from thirdpartylibraries.

max-ieremenko avatar max-ieremenko commented on June 15, 2024

I recommend having 2 separate folders for the source code and the ThirdPartyLibraries repository like in this repo:

/path/sources
-- ...
-- babel-jest # structure under the control of npm
---- 22.4.4
------ index.json # npm index file
------ node_modules
-------- ...
			 
/path/third-party-libraries # structure under the control of ThirdPartyLibraries 
-- configuration
-- licenses
-- packages
---- npmjs.com
------ babel-jest
-------- 22.4.4
---------- index.json # tpl index file

ThirdPartyLibraries expects the repository folder to be under its complete control.

from thirdpartylibraries.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.