abhaykatheria's Blog

Weekly Blog Post #3

abhaykatheria
Published: 07/06/2020

So this week I had my first evaluation. It went great also I received my stipend today so hurray.Extracting golang metadata with shell is frustrating not every go lang module have licenses or the copyright text in a set format. So writing a generic script is quiet challenging I researched on how go license works turns out they have a dedicated license parser as well as scripts which can request license from github. But we can't do that. This week was mostly debugging and restarting again. Now I am trying to work on go.sum file. Extracting names and versions is easy. So all the go modules live in ~/go/pkg/mod and then repo name. But we can't cd into module dir with its name because some does which have upper case letter in their name have different directory name. My exams are also nearing so I have to study for that too . :P

View Blog Post

Weekly Check-in #3

abhaykatheria
Published: 06/29/2020

What did I do this week?

I mostly worked on golang module copyright extraction for tern reports. Also added tern html format to our CI.

What's next?

Will work on extraction of licenses this week.

Did I get stuck somewhere?

Some golang modules from official registry have license of type other than conventional licenses. So that's a problem i still need to figure out.

View Blog Post

Weekly Blog Post #2

abhaykatheria
Published: 06/24/2020

Hi every one, So after 3 weeks my PR finally got merged now tern have html feature up and running. I had some quizzes at the start of week so it was a very busy start of the week.

For now I have to work on the golang modules metadata extraction. Now this is a task Ive mentioned in my earlier blog posts also. Its been quite some time since I ve been banging my head on the wall. golang does not have a singular registry and package manager like node. I thought of using github rest api with but then curl does not comes bundled with all container images.So this is my next part of proposal.

I have my meet with mentors this week I think I will find something useful by then.

 

View Blog Post

Weekly Check-in #2

abhaykatheria
Published: 06/15/2020

What did I do this week?

Did some code clean up for the pr to be merged. Learnt about plugin management using stevedore and tern uses it to create new formats.

Also did some research on go metadata extraction.

What's next?

Will try to get the pr for html format merged by this week. And learn more about retrieving licenses of go modules.

Did I get stuck somewhere?

Unlike npm, pip and other package managers go does not have a way to list the metadata directly. Also there is not a singular registry where all modules can be found which makes it difficult to extract licenses of modules.

View Blog Post

Weekly Blog Post #1

abhaykatheria
Published: 06/07/2020

Tern can generate container analysis reports in different formats like json, txt, yaml etc. but the output genrated by tern's json report was very hard to read. So my task was to render to this json data beautifully in a html page which is more readable and intuitive. I made the code for the html page generation.

So this week I mostly worked on changing the UI of html page as requested by mentors.

My mentors suggested to preserve the json report generation of tern as it is now and create new format which will give reports in html.

So now users can choose html as a format from the command line and generate html reports for their container super easy to read.

Tern uses Stevedore as its plugin manager which makes it super easy to create new plugins.

But I still have a little code clean up to do. I look forward to discuss with it my mentors on our next meet.

In the upcoming week I will start working metadata extraction of glolang package managers.

View Blog Post