diff --git a/bazel/ui.bzl b/bazel/ui.bzl index c102914b63e..8fd2b52b6c1 100644 --- a/bazel/ui.bzl +++ b/bazel/ui.bzl @@ -83,7 +83,7 @@ def _pl_webpack_library_impl(ctx): cmd = env_cmds + ui_shared_cmds_start + cp_cmds + [ 'pushd "$TMPPATH/src/ui" &> /dev/null', 'tar -xzf "$BASE_PATH/{}"'.format(ctx.file.deps.path), - '[ ! -d src/configurables/private ] || mv "$BASE_PATH/{}" src/configurables/private/licenses.json'.format(ctx.file.licenses.path), + 'mv -f "$BASE_PATH/{}" src/pages/credits/licenses.json'.format(ctx.file.licenses.path), "retval=0", "output=`yarn build_prod 2>&1` || retval=$?", '[ "$retval" -eq 0 ] || (echo $output; echo "Build Failed with Code: $retval"; exit $retval)', diff --git a/src/ui/src/configurables/base/licenses.json b/src/ui/src/configurables/base/licenses.json deleted file mode 100644 index 7e724c07f40..00000000000 --- a/src/ui/src/configurables/base/licenses.json +++ /dev/null @@ -1,24 +0,0 @@ -[ - { - "name": "__pl__/__test_mit__", - "url": "https://github.com/pixie-labs", - "spdxID": "MIT", - "licenseText": "MIT License\n\nCopyright (c) 2020 PixieLabs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." - }, - { - "name": "__pl__/__test_bsd_2_clause__", - "url": "https://github.com/pixie-labs", - "spdxID": "BSD-2-Clause", - "licenseText": "Copyright 2020 PixieLabs\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.." - }, - { - "name": "__pl__/__test_missing_text__", - "url": "https://github.com/pixie-labs", - "spdxID": "UNKNOWN" - }, - { - "name": "__pl__/__test_missing_url__", - "spdxID": "ISC", - "licenseText": "Copyright \n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE." - } -] diff --git a/src/ui/src/pages/credits/credits.tsx b/src/ui/src/pages/credits/credits.tsx index 00faf3eeda2..26936f50381 100644 --- a/src/ui/src/pages/credits/credits.tsx +++ b/src/ui/src/pages/credits/credits.tsx @@ -25,7 +25,8 @@ import { createStyles, makeStyles } from '@mui/styles'; import { buildClass, scrollbarStyles, Footer } from 'app/components'; import { WithChildren } from 'app/utils/react-boilerplate'; import { Copyright } from 'configurable/copyright'; -import licenseJson from 'configurable/licenses.json'; + +import licenseJson from './licenses.json'; const useStyles = makeStyles((theme: Theme) => createStyles({ root: { diff --git a/src/ui/src/pages/credits/licenses.json b/src/ui/src/pages/credits/licenses.json new file mode 100644 index 00000000000..f4ffdbe6363 --- /dev/null +++ b/src/ui/src/pages/credits/licenses.json @@ -0,0 +1,8 @@ +[ + { + "name": "Pixie dependencies", + "url": "https://github.com/pixie-io/pixie", + "spdxID": "NOASSERTION", + "licenseText": "License file not written at build time.\nList of all licenses for the latest release are available at https://storage.googleapis.com/pixie-dev-public/oss-licenses/latest.json\n" + } +]