12 Commits

Author SHA1 Message Date
Eng Zer Jun
0959b56285 Replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#7005)
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-09-22 06:23:09 -04:00
Tomas Kral
6af2f9d030 Update alizer dependency (#6650)
* update alizer to ad2d305

* go mod vendor

* add wwhrd exceptions for github.com/pjbgf/sha1cd/

* update go-git to v5.6.1

* go mod vendor

* fixup! go mod vendor

---------

Co-authored-by: Armel Soro <asoro@redhat.com>
2023-03-25 15:36:24 -04:00
Tomas Kral
6883fb9de1 Update to latest Alizer (#6378)
* update to latest Alizer version

* run scripts/mockgen.sh

* go mod tidy; go mod vendor

* add wwhrd exceptions for MIT
2022-12-05 12:21:42 -05:00
Philippe Martin
588472ede5 Fix interactive tests on Windows (#6091)
* Use ActiveState/termtest for interactive tests, which works with Windows

* Fix interactive tests to pass on Windows

* Fix windows tests script

* Set SKIP_WELCOMING_MESSAGES on Windowd tests

* No not resize terminal

* Kill previous odo processes

* Increase timeout for Expect()
2022-09-06 11:33:28 +02:00
Armel Soro
dbfde007cf Favor use of "allowlist" and "denylist" in wwhrd license check config (#5699)
This is the recommended way of configuring wwhrd [1].
Also, those are more inclusive terms in line
with Red Hat recommendations [2].

[1] https://github.com/frapposelli/wwhrd#configuration-file
[2] https://www.redhat.com/en/blog/making-open-source-more-inclusive-eradicating-problematic-language
2022-04-27 08:08:33 -04:00
Tomas Kral
7b44d593e4 use -mod=vendor with all go commands in Makefile and use vendoring to manage ginkgo (#4784)
* export GOFLAGS=-mod=vendor in Makefile

* use go get instead of go install

for installing test dependencies

* use tools approach to manage testing dependencies

When using this apporoach we can make sure that all dependencies in a
proper version are vendored with the source code.

* go mod vendor

* add wwhrd expection for github.com/hinshun/vt10x
2021-06-09 11:18:51 +02:00
Stephanie Cao
adaa1b44e8 Switch to use parser library (#4188)
* cleanup git history

Signed-off-by: Stephanie <yangcao@redhat.com>

* format files

Signed-off-by: Stephanie <yangcao@redhat.com>

* add epl-2.0 into license whitelist

Signed-off-by: Stephanie <yangcao@redhat.com>

* remove componentType and commandType in convert.go

Signed-off-by: Stephanie <yangcao@redhat.com>

* pull in latest library change

Signed-off-by: Stephanie <yangcao@redhat.com>

* add --project to app list test

Signed-off-by: Stephanie <yangcao@redhat.com>

* fix integration test

Signed-off-by: Stephanie <yangcao@redhat.com>

* revert change to public doc

* move the testdevfileobj to testingutil

Signed-off-by: Stephanie <yangcao@redhat.com>
2020-11-21 01:34:32 +01:00
Tomas Kral
de1aa2bcb4 Update vendor openshift 4.1 (#2574)
* update openshift libs in glide.yaml to 4.1

* update vendored openshift to 4.1

* add licence check exception for sigs.k8s.io/yaml
2020-02-06 20:10:14 +01:00
Tomas Kral
41372dbf33 fix wwhrd licence detection (#2497)
new wwhrd version broke some of the detections
- BSD licence are split to BSD-3-Clause and BSD-2-Clause
- MPL-2.0 is now MPL-2.0-no-copyleft-exception
- some of the previosly detected packages are no detected
2020-01-06 17:26:19 +01:00
Suraj Narwade
a22e3723ea updated wwhrd for license check 2018-11-13 13:04:05 +05:30
Chris Laprun
2fb026f084 Completion in go (#859)
* Initial implementation setting up of smart completion.

* Initial implementation for service delete.

* Initial implementation for service create.
This doesn't work properly because we really need to be able to
distinguish between positional arguments.

* Clean-up.

* Add doc.

* Add doc.

* Refactor completion handler code to make it easier to test. Add tests.

* Update vendor.

* Filtering doesn't occur at the completion handler level at this point.

* Add test for delete completion.

* Update glide and vendor.

* Fix format.

* Fix format.

* Add MPL-2.0 to licenses.

* Revert to 1.1.2 version of complete library due to bug with 1.2.0.
See https://github.com/posener/complete/issues/74

* Fix odo -h.
2018-10-29 13:46:45 +05:30
anmolbabu
ea174cb57b Add vendor license checks to PR (#744)
* Add vendor license checks to PR

This PR aims to add automatic detection of licenses of vendor-ed packages for every PR raised
to the Odo repository using a tool called [wwhrd](https://github.com/frapposelli/wwhrd) that
iterates on every vendored package, searches for the license file, detects the license type
and validates the detected license type against the different sections of the configuration
file .wwhrd.yml.

fixes #743
Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate comments from @surajnarwade

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @tkral Comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Add documentation about the license checks

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @codeclimate comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @cdrage comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @cdrage and @kadel comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incorporate @cdrage comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>
2018-10-03 11:30:12 -04:00